Gravity Well Particle Lab (2D)
A top-down accretion disk: thousands of particles spiral into a central mass under an inverse-square pull, their radial and angular velocity driven by the same equations as the 3D scene, just viewed from directly above.
This 2D companion swaps the orbiting camera for a fixed top-down view of the same accretion disk: particles are tracked in polar coordinates (radius, angle) and pulled inward by an inverse-square force from the central mass, exactly as in the 3D scene, so the spiral-in behaviour, capture rate and disk-turbulence wobble read the same — just flattened into a single plane you can watch at a glance.
Each particle's radial velocity decreases by mass / radius² per step (inverse-square gravity), while angular velocity scales roughly as 1/√radius (a Kepler-like falloff); turbulence adds a sinusoidal radial wobble, and particles crossing the inner event-horizon radius are captured and respawned at the disk's outer edge.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install