Skip to main content
100%

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

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

This example shows a Voronoi diagram generated from 100 random points, where each cell displays a different random image from picsum.photos. Moving the mouse over the visualization repurposes the first data point as the cursor, creating an interactive trail effect with a highlighted green cell. The code uses Svelte's reactive bindings to recompute the `Delaunay.from()` and `voronoi()` results from d3, employing SVG clip paths to mask images to their respective cell boundaries.

AI-generated description
MIT Licensed

Similar vizzes