-
-
Notifications
You must be signed in to change notification settings - Fork 43
voronoi effect #327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
voronoi effect #327
Conversation
|
Also awesome. This looks much more like scales on a reptile or something. People are going to enjoy adjusting that uniformity. |
|
Bug 2: Default is zero sized. I'm not sure if this is a new thing. But if the last shape I added was a voronoi, and I refresh the page, then select file...new, it defaults to a voronoi shape with width and height set to 0,0. I noticed this because I blew away the localstorage and switched branches. But those steps seem to reproduce it without messing with localstorage or git/npm. |
There's a fix for the slider in #326 |
@jeffeb3 This is because the machine's not available when the shape is drawn after the reset. I could add code to make this work, or set a sensible default like 100 x 100, but that would be inconsistent with the machine sizing you get when you add a new Layer. Lastly, we could avoid fixing this by waiting until we add your desired feature to clear all shapes with "File, New", which will make the issue go away. If you like that idea, this is ready to merge. |

Adds a "uniformity" slider to Voronoi patterns that applies Lloyd relaxation, making cells more evenly distributed. Also improves path-finding performance.
New option:
Performance improvements:
clearCachedPaths()calls on addNode/addEdgeTest plan