Particles Connected with Springs

Simulation of multiple particles connected mutually with springs. Made for Dan from the Coding Train.

My original code with 2 particles: https://editor.p5js.org/simontiger/sketches/18ib3ZNKm

Four particles: https://editor.p5js.org/simontiger/sketches/gkexoSqZZ

Blog (Simon also shows his work-in-progress physics library): https://antwerpenhomeschooling.wordpress.com/2021/01/25/particles-connected-with-springs-and-simons-physics-library/