Skip to main content
100%

Fork of Fork of Fork of #HAW: Svelte + D3: Voronoi

✓ Published1🌍 Public
NNita
Last edited Dec 3, 2025
Created on Dec 3, 2025

A Voronoi diagram partitions a square canvas into 100 cells, each centered on a random data point. A violet path traces through the cells, following a fixed, complex curve. Interactive mouse movement replaces the first data point's position, dynamically recalculating the diagram. The code uses D3's `scaleLinear` and `Delaunay` API to compute the Voronoi cells from the mouse-adjusted points.

AI-generated description
MIT Licensed

Similar vizzes