Change width
Change height
Change number of starlings

Flocking starlings

This model is based on ideas from Wikipedia. The 'starlings' try move towards the centre of their flock; they try to move in the same direction as their three nearest neighbours; and they keep a certain distance away from each other. In this model, they also move randomly a small distance with each iteration; are constrained in 2-D space; and attempt to fly at a constant speed, changing direction horizontally or vertically as they approach a boundary. The animation can be paused and restarted by clicking on it.