Skip to main content
100%

Connected Particles

✓ Published0🌍 Public
Mmbostock
Last edited Oct 7, 2018
Created on Jun 9, 2015

One hundred particles drift vertically at constant speeds across a canvas, with lines connecting nearby particles whose opacity fades as distance increases. The visualization uses d3-timer’s timer for animation and the Canvas 2D API for drawing arcs and strokes. Each particle’s horizontal position resets randomly when it exits vertically, while line visibility depends on squared distance thresholds. The code relies on `d3.timer` and direct canvas context methods like `clearRect`, `arc`, and `lineTo`.

AI-generated description

A test of the d3-timer module.

gpl-3.0 Licensed

Similar vizzes