A particle sandbox program written in Go, using the pixel 2D game library for rendering and controls
https://github.com/faiface/pixel
The sandbox is composed of particles (dots) and bonds. Dots have position and velocity, while bonds are a pair of dots with a given length. The bonds apply forces to maintain the distance between 2 dots. If the radius is too much in excess of the bond length, it will break.
There is also a "push" feature, seen later in the video, where dots are pushed away from the cursor, allowing tearing and scattering of objects. There is also a small constant force applied to all dots toward the origin to keep everything in the same area and allow some initial cohesion