For historical interest: Here's a description of the humble beginnings of gravity put onto a computer's screen (think of PDP-1 Spacewar! code, 1962):
http://www.masswerk.at/spacewar/inside/insidespacewar-pt6-gr...
http://www.masswerk.at/spacewar/inside/insidespacewar-pt6-gr...