Craig Reynolds' flocking boids

This is a 2D version of the famous flocking simulation, where the individual boids follow only three simple rules: separation, alignment and cohesion.

To add new boids, click in the window.

View source code. From a Processing example.