In 1986 Craig Reynolds simulated the flocking behaviour of birds. He came up with a simulation of so called “boids” that get controlled by 3 simple rules Each rules takes in concerne the boids close to it self.
This implementation is done via p5js and javascript.
The influence (range) of each rule can be adjusted by changing slider values.
This will change the behavior of the boids.