Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars1๐ŸŒ Public
NNita
Last edited Dec 3, 2025
Created on Dec 3, 2025

A Voronoi diagram partitions a canvas into cells, each anchored by a randomly generated point and filled with a distinct image from Picsum. The code builds the diagram with the d3 Delaunay and voronoi APIs, rendering SVG clip paths for each cell. A green-highlighted first cell tracks the cursor as it moves, demonstrating the dynamic re-computation of the Voronoi tessellation as the center point shifts.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed