Skip to content
EXP-004generativeLive

Murmuration.

Thousands of simulated starlings flying as one animal. Every bird follows the same three local rules (keep your distance, match your neighbors, drift toward the group) and nobody is in charge. The shape you're watching is nobody's decision. Your cursor is the hawk, and the three rules are dials you can turn.

Three rules · No leader

 

You are the hawk. The three rules are yours too.

Drift through the flock and it parts around you. Press and hold to dive; let go and watch it fold back together. Then turn one of the three rules down and watch it stop being a flock at all.

 

 

100%
100%
100%

Bench notes

The rules
Each bird sees only its nearest few neighbors: it separates when crowded, aligns with their heading, and drifts toward their center. Add a wandering wind and that's the entire program. Everything that looks choreographed is emergence.
Turn one down
The three rules are the whole animal, so you get all three as dials. Take cohesion to zero and the flock stops existing: two thousand birds wandering the same sky, a gas. Take separation to nothing and they collapse into one clot. Push alignment to the ceiling and the shape stretches into stiff sheets that can no longer turn. Nothing else in the simulation changes. That is the argument: the behavior is not in any bird, it is in the ratio between three numbers, and the presets are named for the animal each ratio gives you.
The hawk
Drift near the flock and it bulges away from you. Press and hold to dive and it shatters; release and it folds back together. Release the hawk instead and it hunts on its own, circling and stooping while you watch. Real murmurations do exactly this, which is most of why they exist: a falcon cannot pick one bird out of a shape that never stops changing.
The instrument
Two live readings sit over the flock. Alignment is the order parameter flocking researchers actually measure: how much the birds agree on a direction, from a hundred percent for a rigid sheet down to the teens for a gas. The other is a clock on the fold. Every stoop punches a hole in the flock, and the clock starts when the hole opens and stops when the birds have filled it back in, so the number is the fold itself, not the hawk's travel time.
Follow one bird
The flock dims and one ordinary starling gets a ring, its perception radius, a line to each neighbor it is currently listening to, and a trail of where it has actually been. Its own path is a scribble. It never leads, it never follows anything for long, and it has no idea what shape it is in. That gap between the individual and the animal is the entire idea, and it is the same gap between one user session and a usability finding.
The craft
Flat typed arrays and a spatial hash keep the neighbor lookups cheap, and the whole flock is two stroke calls a frame, one per color. Separation is unconditional while alignment and cohesion are rationed to roughly seven neighbors, which is what the starling research found: birds track a fixed number of companions rather than everything inside a radius, and that is what lets a flock keep its shape as it thickens. Four thousand birds is a real load and the counter over the flock is live, so if your machine cannot hold sixty frames a second it will tell you.