This really works, even if fake orbit. The sun should be at a focus of the ellipse of real gravity. a Javascript program that simulates a planet in an elliptical orbit around a sun. Draw the background black, planet blue and the sun yellow.