hr-studio Agents & Swarms · 01
A computational design primer · Flocking & Steering

A thousand birds, and nobody in charge

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.

Scroll — meet the first rule
i.

Rule one — keep your distance

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.

Click to drop a cluster
46
ii.

Rule two — go with the flow

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.

Shuffle and watch them agree
iii.

Rule three — don't get left behind

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.

Scatter them
iv.

Now run all three at once

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.

Your cursor is a predator
v.

The murmuration

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.

Sweep to herd · click for a gust
No leader, no blueprint — just three local rules, repeated by everyone, becoming a single thing that flies.