Skip to main content
100%

random-walk-merge

✓ Published0🌍 Public
11wheel
Last edited Aug 24, 2017
Created on Aug 24, 2017

Hundreds of colored squares perform a synchronized random walk across a canvas, leaving fading trails as they drift. A mouse position controls the minimum square size and the step change magnitude, making the motion more chaotic near the bottom and right edges. The visualization uses `d3.interval` for timed updates and the Canvas 2D API with a semi-transparent white overlay to create a persistent, ghosting effect. Squares periodically merge when they land in the same horizontal position, incrementing a counter that determines their color via `d3.scaleOrdinal`.

AI-generated description

Similar vizzes