Craig Reynolds' boids algorithm — three simple rules produce complex collective motion. Click the canvas to place obstacles.