Boids Flocking

400 birds, no leader, no plan. Each one follows three local rules — steer toward neighbours, steer with neighbours, don't crowd neighbours — and the murmuration falls out for free. Move the sliders mid-flight; click the field to drop a predator and watch the flock split around it.

A canvas animation of 400 flocking birds. Your browser does not support canvas.
click the field to drop a predator

Readout

—fps
—flock order
400boids
0predators
idle

Colour shows crowding: grey on the fringe, amber in the thick of it. Flock order is how closely all 400 headings agree — 1.00 is one mind, and it sags whenever the flock splits into groups pulling different ways. Drop a predator and watch it fall.

Rules

Presets