A demonstration of how calculations for basic animations, eg simple horizontal and vertical movement, can be combined to create a more complex looking effect, like an orbit.

The circular nature of the orbit is a product of using sine and cosine methods for the vertical and horizontal animations.

See the update() method for the very simple maths 😃

The draw() method appars complex due to the multiple elements in this demo, but drawing the orbitting dot itself is just three lines.