Demonstration of flocking behavior. Full discussion of the implementation can be found in the Nature of Code book by Daniel Shiffman. The simulation is based on the research of Craig Reynolds, who used the term ‘boid’ to represent a bird-like object.
Flocking by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.