mitxela / plotterfun

MIT License
328 stars 63 forks source link

Added the Jaggy algorithm #24

Closed tkoop closed 2 years ago

tkoop commented 2 years ago

I added an algorithm that converts the image into a single loop, but the loop is not very smooth, so I called it Jaggy.

mitxela commented 2 years ago

Hello, looks nice.

Just wondering, is the settimeout() call needed? Seems to work fine without it but I only tested very briefly.

tkoop commented 2 years ago

Just wondering, is the settimeout() call needed? Seems to work fine without it but I only tested very briefly.

Nope, it's not needed. I just tried it, and it doesn't seem to do anything. While I was there taking it out, I also fixed some random number generating.

mitxela commented 2 years ago

Thanks for the contribution!

Yeah I think the only reason to use the await / settimeout stuff here is if you want to adjust things without restarting the algorithm, such as changing the shape and size of the stipples in stipplegen.