CodingTrain / Suggestion-Box

A repo to track ideas for topics
572 stars 86 forks source link

Voronoi Diagrams #1574

Open Em-7dice opened 3 years ago

Em-7dice commented 3 years ago

To create a set of random points ("seeds") in a canvas, then break up & color the canvas into regions where every point is the same color as the "seed" point closest to it. (It'd also be nice to get an example of the related Delaunay Triangulation, but I can't quite put that into words, so I'll just link the wikipedia pages for both Voronoi Diagrams and Delaunay Triangulations.)

Em-7dice commented 3 years ago

here is a library for p5.js

D-T-666 commented 3 years ago

Is this not what you mean?