you can play with boids (the small colored shapes on screen) and interact directly with them with your mouse as they hurl away from you, because of how you didn't smash like and favorite to me yet. Anyway, move your mouse to the left side of the screen and some variables will appear: Max speed is for the maximum speed the boids are going. Resolve is how long a boid changes it's speed to a new max speed. The more, the longer. Range is a boid's radius to "see" other boids and do stuff. Separation is the amount of energy that a boid wants to swirl away from an incoming boid, or to, evade one. Can be effective or not by range variable. Cohesion is a variable that allows the boid to quickly get close to each other. Can be effective or not by range variable. Alignment is a variable that allows the boid to quickly go in the direction other boids are going. The better, they are flocks. The lower, they are swarms.
credits to @griffpatch for tutorial