This demo simulates the Sun-Earth-Moon System and traces the paths of Earth and the Moon.
Note the cycloid/loop-the-loop movement of the Moon.
Up-Down arrows puts pen up-down for the moon and traces its path.
Left-Right arrows puts pen up-down for the Earthand traces its path.
Space bar clears the traces.