mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 12:04:43 -04:00
Added proper circle brush - Bresenham's Circle Algorithm
The circle's radius is the brush's size. Respects image/selection boundaries, works with mirror. A special plot_circle() method is found on Global, to calculate the rectangles used by the mouse cursor/position indicator.
This commit is contained in:
parent
7942463b7d
commit
06e0d74c14
7 changed files with 210 additions and 67 deletions
BIN
Assets/Graphics/circle_9x9.png
Normal file
BIN
Assets/Graphics/circle_9x9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 109 B |
13
Assets/Graphics/circle_9x9.png.import
Normal file
13
Assets/Graphics/circle_9x9.png.import
Normal file
|
@ -0,0 +1,13 @@
|
|||
[remap]
|
||||
|
||||
importer="image"
|
||||
type="Image"
|
||||
path="res://.import/circle_9x9.png-cfd9cf56bdd7391c1c12df315cfd78e2.image"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Graphics/circle_9x9.png"
|
||||
dest_files=[ "res://.import/circle_9x9.png-cfd9cf56bdd7391c1c12df315cfd78e2.image" ]
|
||||
|
||||
[params]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue