Skip to main content
100%

Rotating Distance-limited Voronoi - d3v4

✓ Published0🌍 Public
KKcnarf
Last edited Dec 3, 2018
Created on Jul 26, 2016

The example visualizes a rotating set of points whose Voronoi cells are limited by a dynamic maximum distance, creating an evolving pattern of filled polygons against a black background. It revisits Mike Bostock’s original rotating Voronoi using the `d3.distanceLimitedVoronoi` plugin, which recomputes cell boundaries at each animation frame based on the shrinking or growing distance limit. The code uses two `d3.timer` callbacks—one to update point positions via trigonometric motion and another to adjust the `limit` value—while rendering SVG `path` elements that trace each cell’s computed outline in white.

AI-generated description

Revisitng the famous mbostock's block: Rotating Voronoi with the d3-distanceLimitedVoronoi plugin I made.

At each iteration, maximum distance from each datum/seed is updated. Compare to the canvas version.

gpl-3.0 Licensed

Similar vizzes