Press space to toggle variables being shown. Press up arrow or down arrow to choose between a selection of special settings. Press "a" to randomize boid settings. You can also change the sliders as well to customize the boids: Top speed is how fast the boids want to go. Resolve is how closely the boids keep to the top speed(with higher values corresponding to keeping to it more, and lower values making them keep it less). Range is how far they can sense other boids. Gravity is how much they're attracted to each other.
This is a spin-off of Griffpatch's excellent Youtube video, "Boids Scratch Tutorial". Here's the link: https://www.youtube.com/watch?v=Rv1tvWTtd5M I stopped at about 22:45 and reversed the Separation variable, and renamed it gravity. This makes the birds be attracted to each other instead of repelled.