🌍 Public
Viewing a saved revision (read-only)
d87d32d40fa64b20a22fb0b5345b2eb8
Fork of Fork of #HAW: Svelte + D3: Voronoi
A Voronoi diagram partitions a 100-point random dataset into cells around each point, with the entire diagram dynamically updating as the mouse moves across the canvas. The interactive visualization, built with Svelte and rendered as SVG, uses D3's `scaleLinear` for coordinate mapping and `Delaunay.from` to compute the Voronoi tessellation from the points. The mouse position replaces the first data point in real-time, causing the diagram to continuously recalculate and redraw.
AI-generated description