Grid Painter v1.0

This is my new project !
How it work:
press green flag
click on a point, click on another point (it draw a line)
draw somes shapes
click on "Fill Mode"
select a color
click into a shape ti fill it
click on fill mode another time
you can hide the grid if you want to see your drawing
you can save your art (watch it in the ART\costumes)

Show me your ART !

Change log:
v1.0.0 : Draw a line on the grid
v1.0.1 : Add color palette functionality
v1.0.2 : Add fill mode functionality
v1.0.3 : Add save as cst functionality
v1.0.4 : Add slideshow functionality
v1.0.5 : Cursor modification
v1.0.7 : Reload the primitives palette (bug: thk to sathvikrias)
v1.0.8 : Add line/circle functionality
v1.0.9 : Help on trash icon
v1.0.10 : Better help on trash, Add functionality to draw without grid
v1.0.11 : fill mode bug correction, smaller grid, functionality to draw polygons

Somes examples:







Oh that's beautiful -- both the program and the art!

You set a variable "Current color" when I click in the color bar, but when it comes to actually drawing lines you make a point of setting the pen color to black instead of using that color. Why?

Also, I notice that when a fill boundary includes a very acute angle it isn't completely filled. Is that Snap!'s fault, or something you do?

Variable: It's for the fill color...

Bad filling: snap fault

Draw something for me!

I'd blame javascript's anti-aliasing (or that snap doesn't store the original unscaled
aliased image, and use that for all image processing instead of the seen scaled anti-aliased image).

Oh yeah, that misfeature. :~(

No, I get that, but I mean why not use it for the pen color too?

I am so not an artist... but at least I drew the lines in blue. :~)

Okay, just because you insist...

And don't complain if you draw a white line on a white background hahaha

I actually did that on purpose once before I figured out how to use the trashcan icon.

it's an undocumented feature! WTSD™ (like you said) hahaha

Your punishment for making me try to draw something is that, looking at my star, I want to pick up those bottom two vertices and drag each of them up one grid point! As I could in Geometer's Sketchpad or Cabri.

Oh no! It's lagging on Chrome on Windows 11!


By the way, why not extension [cst_export(cst, name) V] [] [] @delInput @verticalEllipsis @addInput?

Or even better, this block from the pixels library.

Is it lagging for someone else ?

Just because i want to make a slideshow soon

not for me. this project is really good, but it errors at the beginning:
I think you need to shift-click the settings -> primitives pallete because there are undefined blocks in primitive definitions including the (_embroider variable.

i reload the primitive palette
Can you try it (temporary version) edit:(no link available...)

if it doesn't work, can you tell me me which block have undefined block inside

yes, it is now working :)

thank you so much!

New version available !

The trash can button doesn't work for me.

you have to take a line / circle and drop it to the trash

Ohhhh. I didn't realize that the lines and circles were draggable. My bad. :crazy_face: