A few hundred to a few thousand boids swim for 280 steps, each following three local rules: keep clear of close neighbours, match their heading, drift towards their centre. Nothing is drawn while they move. The piece is the long exposure of the whole run: every trail is laid down thin and translucent, so where the school passed often the image builds up like light on film. A shoal is carried by a stream that bends round rocks, a river of boids is cut open by wide-turning predators, schools mill round vortex centres, or lanes of migrants cross each other. A rear-curtain flash can freeze every boid at the end, or a strobe catch it several times along the way. Press New seed for a fresh hash, then share the URL to show someone that exact piece.
Traits
The weights were set before any drawing code was written. They were then checked against a census of 2,000 seeds.
| Trait | Values (weight) |
|---|---|
| Palette | Graphite 20 · Abyss 22 · Ember 15 · Cyanotype 13 · Tidepool 18 · Kelp 12 |
| Scene | Shoal 32 · Pursuit 26 · Mill 22 · Crossing 20 |
| Population | Sparse 25 · School 50 · Throng 25 |
| Temper | Calm 40 · Restless 35 · Tight 25 |
| Shutter | Open 35 · Rear curtain 45 · Strobe 20 |
Credits
- Flocking: Craig Reynolds’ boids, Flocks, Herds, and Schools: A Distributed Behavioral Model (SIGGRAPH 1987): separation, alignment and cohesion. Wander, obstacle avoidance, flee and pursuit follow his Steering Behaviors For Autonomous Characters (GDC 1999). Neighbours are found with a uniform grid.
- The stream round the rocks is the textbook ideal potential flow past a circular cylinder (a uniform flow plus a doublet), superposed for every rock.
- The simulation uses only addition, multiplication, division and square roots, which IEEE 754 rounds exactly, so the run does not depend on how an engine implements sine or cosine.
- Randomness: sfc32 by Chris Doty-Humphrey. The hash seeding, named sub-streams and verification follow Camille Roux’s genart skill (MIT).
- The palettes are original. The code was written with an AI assistant. It draws everything itself: no AI-generated images.