Skip to main content
100%

Rotating Distance-limited Voronoi

✓ Published0🌍 Public
KKcnarf
Last edited Dec 3, 2018
Created on Jun 22, 2016

This example animates a rotating Voronoi diagram where cell boundaries are clipped by a dynamically shrinking maximum distance from each seed point. Multiple concentric rings of points orbit at different radii and speeds, creating a shifting mosaic of white polygons on a black background. The code uses the d3.distanceLimitedVoronoi plugin with d3.v3, recomputing the distance limit from a cosine function each frame via d3.timer. The SVG paths update continuously, with point positions driven by nested timers for circular motion.

AI-generated description

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

At each iteration, maximum distance from each datum/seed is recomputed.

gpl-3.0 Licensed

Similar vizzes