Skip to main content
100%

flying-beeswarm

✓ Published0🌍 Public
11wheel
Last edited Mar 3, 2018
Created on Mar 3, 2018

A swarm of 600 colored circles flies along a looping cubic Bézier path that morphs in time. Each circle’s position along the path is fixed by a random value, but `d3.forceSimulation` with `forceX`, `forceY`, and `forceCollide` jitters the circles apart each frame, creating a dense, collision-free cluster that stretches and warps as the path undulates. The path is drawn as a thick yellow stroke, and circles are rendered in SVG with positions updated via `translate`. Data is procedurally generated using `Math.random()`.

AI-generated description

See beeswarm-path for a tidier implementation of beeswarm along a path.

Similar vizzes