Voronoi Edges
✓ Published0🌍 Public
This example animates the edges of a Voronoi diagram generated from 1,500 normally distributed random points. The visualization uses d3.Delaunay and d3.voronoi to compute the diagram, then renders its line segments incrementally on a Canvas using a JavaScript generator and requestAnimationFrame. Each frame draws approximately five new edges with random colors from d3.hsl, creating a dynamic, colorful buildup of the geometric structure.
AI-generated descriptionA port of Voronoi Edges by Fil to vanilla JavaScript.
The content of the work here is not original, but the adaptation to vanilla JavaScript (and additional code comments) is. This port was inspired by this question: Better documentation needed to get d3-delaunay started.
See also:
ISC Licensed