Flocking Boids
This is part of a tutorial: https://youtu.be/x-GwBH4dhko.
This is Processing code! Download it from https://processing.org/download. If you're using the Procesing IDE, run Boids.pde
and it should work. If you're using the compiler, then compile the thing and it should work too.
Unlicensed.