WebSVG / voronoi

Parametric Voronoi generator with real time editing and SVG export
https://voronoi-editor.web.app
179 stars 27 forks source link

Update main.js to include color randomization #19

Closed neuroradiology closed 3 years ago

neuroradiology commented 3 years ago

create menu_color function in order to

of note: re-generating the cells by using other aspects of the UI will revert all cells to the default color (gray).

neuroradiology commented 3 years ago

One other line needs to be added to main.js, between line 381 and 382:

menu_color( grid.get_div({width:180,height:120}))

I tried to make this all one PR, but I'm new to this and only got the new function in it.

I'll try to do it more efficiently next time.

wassfila commented 3 years ago

It's working, after my last commit c901de9 to call ifrom the main congratulations, well done and thank ;) image

wassfila commented 3 years ago

Use the second link though, as it's automatically updated the first one needs manual update to get last version https://websvg.github.io/voronoi/

If you have more ideas or questions we can chat on discord https://discord.gg/wCxpAX8TQk it's a small community of those I know and we collaborate on such small projects.