Below is an example of a P5JS sketch which is embedded. In this way any change that is made in the original will be reflected here.
Use you mouse to rotate the view of these three moving objects. The slider changes the mass ratio between the two objects in the center.