Fork of Fork of Fork of #HAW: Svelte + D3: Voronoi
✓ Published1🌍 Public
This example builds an interactive Voronoi diagram from 100 randomly generated points, with colorful, semi-transparent cells rendered as SVG paths. It uses `d3.Delaunay` from D3 v7 to compute the Voronoi tessellation and `Delaunay.voronoi().renderCell()` to generate each cell path. Moving the mouse over the visualization updates the first data point to follow the cursor, recalculating the tessellation in real time. Each point is also marked with a small violet glyph and a circle, layered over a dark gradient background.
AI-generated descriptionMIT Licensed