Background

A long time ago I saw a video by The Coding Train on a subject called Boids. Essentially, a boid (bird-oid obeject) is a simulation of flocking behavior as seen in fish or birds. The original algorithm was designed by Craig Reynolds in 1986 [1] and represents a feat of math and ingenuity with regard to computer modeling and simulation.

During my independent studies, I've become fascinated by physics simulations running in-browser. In my first study, Approximation of Pi using Cubes of differing Mass, I leveraged p5.js (as is used by The Coding Train) to create a simple canvas and animate the idea through my own code.

In researching these physics studies, I am re-learning the joy in programming and strengthening my ability to sit with and ponder each hurdle, bug, or problem that I run into.

Result