Voronoi Tesselation
✓ Published0🌍 Public
Mmbostock
Last edited Feb 8, 2016
Created on Nov 13, 2010
This example visualizes a Voronoi tessellation of 100 random points within an SVG canvas, with each cell filled by a random HSL color and vertices marked as small circles. Moving the mouse repositions the first vertex, dynamically recomputing the tessellation and updating only the paths whose geometry changed. The code uses the D3 library’s `voronoi` function from the `jit/voronoi.min.js` module, along with SVG path elements and `d3.svg.mouse` for mouse coordinates. The rendering is immediate, without animations or transitions.
AI-generated descriptiongpl-3.0 Licensed