Gravity simulator. The web version of my previous program, which was written in Python.
Simulates the interaction of round entities on a 2D plane, implementing collision and gravitational physics. Coded with vanilla HTML/CSS/JavaScript, and math.js
Left-click to create a new planet, press to hold a planet, right-click to delete planet, and scroll when your cursor is on a planet to feed or shrink a planet.