Back to archiveGenerative Experiments
D3.js

Voronoi Force Field

A living Voronoi mosaic driven by D3 force simulation, with interactive mouse attraction and triangulation overlays.

How It Works

  • Nodes run in a non-settling force simulation with charge, collide, and centering forces.
  • Voronoi cells and Delaunay edges are redrawn each tick for continuous topology changes.
  • Mouse proximity adds directional pull, while periodic turbulence keeps motion varied.
  • Colors are tuned to the clay/coral/sky/gold/emerald/lavender site palette.

Source Code

tsx