Mass of planet 1

Mass of planet 2

Mass of the new planet (spawned with N)

Controls:

G - Toggle gravity

C - Clear all planets

B - Toggle backgroud redraw

N - Spawn new planet

R - Reset

D - Toggle velocity (blue) and acceleration (red) vectors