Fork of Fork of Fork of #HAW: Svelte + D3: Voronoi
✓ Published1🌍 Public
A Voronoi diagram partitions a canvas into cells, each anchored by a randomly generated point and filled with a distinct image from Picsum. The code builds the diagram with the d3 Delaunay and voronoi APIs, rendering SVG clip paths for each cell. A green-highlighted first cell tracks the cursor as it moves, demonstrating the dynamic re-computation of the Voronoi tessellation as the center point shifts.
AI-generated descriptionMIT Licensed