Boids — Emergent Flocking

Craig Reynolds' 1987 algorithm: three simple local rules — separation, alignment, cohesion — produce complex collective behavior.

Click on the canvas to add a repeller. The three rules operate within a perception radius — no global coordination. Flocking, schooling, and murmuration are all explained by this model.