Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

Viewing a saved revision (read-only)

64508879499d4a61bfd1037355bb0940

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

0 stars0🌍 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