Voronoi Diagrams
Voronoi diagrams are pretty neat. https://en.wikipedia.org/wiki/Voronoi_diagram
To create a voronoi diagram:
- Pick some points in 2d space.
- Assign colors to those points.
- Create an blank canvas image with enough pixels to represent that 2d space.
- Assign every pixel in that image to the color of the closest point.
Step four is interesting because there are lots of ways to measure distance. I wrote a program to create voronoi diagrams using different distance functions. Here are the results:



Comments
Post a Comment