A murmuration has no leader, no plan, no choreographer — yet it moves as one body. The secret is that each bird follows just three simple rules. Let's add them one at a time.
Separation. Nobody likes to be crowded. Each bird steers gently away from any neighbor that gets too close — that's all.
On its own, this rule just spreads everyone out into comfortable space. Drop a tight cluster and watch it relax apart.
Alignment. Each bird looks at the neighbors around it and steers to head roughly the same way they're heading.
Start them pointing every which way, and watch a shared direction quietly emerge — no one decided it.
Cohesion. Each bird drifts gently toward the average position of its neighbors — the local center of the crowd.
Scatter them across the sky and this one pulls them back into a loose, milling group.
Mix the three rules together and something remarkable happens: a living, turning flock. Dial each rule up or down and feel how the personality changes.
Move your cursor in — you're a hawk. Watch them part around you and close back up.
The same three rules, now with a whole sky full of birds. Sweep your cursor through them to herd the flock — and watch the patterns no single bird could ever plan.