Everything I built
Simulation
Earth–Mars Transfer Simulation
liveWatch a spacecraft fly from Earth to Mars. The planets move at their real speeds, so you can only launch when they line up.
Screenshots
What it does
- The trip is a long curve, not a straight line, and a launch window comes round about every two years.
- Speed the clock up or slow it down, and zoom in or out.
- Click a planet to see where it is and how fast it’s going.
- A log lists every launch, journey and arrival as it happens.
- Works with a mouse or a finger.
Built with
- HTML5 Canvas
- Vanilla JavaScript
- CSS3
- Orbital Mechanics
Want the how and why?
I write up builds like this one. What I did, what went wrong, and what is worth copying.
Read the writing

