spryte
flocking
boids
2k
5k
20k
50k
100k
renderer
WebGL2
Canvas 2D
separation
alignment
cohesion
Reset rules
Pause
Each boid only sees its neighbours and follows three rules: keep some distance, match their heading, drift toward their centre. Flocks emerge from that. Your pointer is a predator: chase them. Set a rule to zero to see what it does.