Click "Radius spheres & distances" (in the panel at right) to see under the hood. Then play with the sliders to see how the schooling changes — with visual cues showing what's going on.
Click the ? button (upper right of the panel) for short descriptions of every slider.
Every fish follows just three simple rules — and the schooling emerges on its own:
With "Radius spheres & distances" checked, each sphere shows a fish's awareness range for the selected rule — that's all it can "see." The colored lines show which fish are listening to each other. Toggle between Separation, Alignment, and Cohesion spheres to see how each rule operates.
For a deeper dive, the About Boids page explains the algorithm in detail.