Home▸Space & Astronomy▸Binary Star System: Two-Body Orbital Dynamics (2D)

⭐ Binary Star System: Two-Body Orbital Dynamics (2D)

A 2D Canvas simulation of two stars orbiting their common barycentre under real Newtonian gravity, integrated live with velocity-Verlet. Adjust mass ratio, separation, eccentricity and viewing tilt and watch the orbital period, barycentre and eclipsing light curve emerge from the physics.

Space & Astronomy2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-binary-stars ↗ Open standalone
⚙ Under the hood

A 2D Canvas2D companion to the 3D Binary Stars simulation: two stars orbit their common barycentre under real Newtonian gravity, integrated live with velocity-Verlet, rendered top-down. Adjust mass ratio, separation, eccentricity and viewing tilt with sliders and presets, and watch the orbital period, barycentre offset and eclipsing light curve emerge directly from the physics.

AstronomyOrbital MechanicsGravityTwo-Body ProblemKepler

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)