Reynolds flocking — separation · alignment · cohesion. Complex murmurations emerge from three simple local rules.
Repel
Speed hue
Trails
Grid
Under the hood: a uniform spatial-hash grid (cell = vision radius) means each boid only scans its 3×3 neighbouring cells — turning the naïve O(n²) all-pairs test into ~O(n), so thousands run smoothly on Canvas 2D.
FPS
60
Boids
2500
Neighbour checks / frame
—
🖱️ Drag to disturb the flock · H hide panel · R reset