An implementation of the Boids algorithm using OpenRNDR, a Kotlin-based creative coding framework. This implementation is a damn-near straight port of the Processing implementation by Daniel Shiffman.
If you press
spacebar, the boids panic (which in this case means reversing their drive toward 'cohesion', as defined by the Boids algorithm). Press it again and they un-panic.