mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 22:04:43 -04:00
Backend implementation of an isometric grid
An attempt to draw an isometric grid. It behaves oddly on non-square canvas sizes, and on some grid sizes. For this reason, I'm not sure if it will be implemented in v0.7. To test it, set Global.grid_type = Global.Grid_Types.ISOMETRIC
This commit is contained in:
parent
67c243b189
commit
7d12f1fccc
2 changed files with 41 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
extends Node
|
||||
|
||||
enum Grid_Types {CARTESIAN, ISOMETRIC, ALL}
|
||||
enum Pressure_Sensitivity {NONE, ALPHA, SIZE, ALPHA_AND_SIZE}
|
||||
enum Brush_Types {PIXEL, CIRCLE, FILLED_CIRCLE, FILE, RANDOM_FILE, CUSTOM}
|
||||
|
||||
|
@ -43,6 +44,7 @@ var default_image_width := 64
|
|||
var default_image_height := 64
|
||||
# warning-ignore:unused_class_variable
|
||||
var default_fill_color := Color(0, 0, 0, 0)
|
||||
var grid_type = Grid_Types.CARTESIAN
|
||||
# warning-ignore:unused_class_variable
|
||||
var grid_width := 1
|
||||
# warning-ignore:unused_class_variable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue