Skip to content

Repository files navigation

🌌 LightSpeed in Space

An interactive visualization of how long it takes light to travel from Earth to solar system objects — in real time, or accelerated up to 100×.

Live Demo →


What it does

Select a destination — Moon, Mars, Neptune, or any other solar system object — then launch the light beam and watch it travel across the screen. The footer shows the exact travel time, distance, and current simulation speed.

  • — real speed of light (300 000 km/s)
  • 10× — 10 times faster than light
  • 100× — 100 times faster than light
Destination Distance Light travel time
Moon 384 400 km ~1.28 sec
Venus 41 400 000 km ~2.3 min
Mars 78 340 000 km ~4.4 min
Jupiter 628 730 000 km ~34.9 min
Saturn 1 275 000 000 km ~70.8 min
Uranus 2 723 950 000 km ~151.3 min
Neptune 4 351 400 000 km ~241.7 min
Pluto 4 280 000 000 km ~237.8 min

Tech stack

  • Svelte 4 — reactive UI components
  • Vite 5 — build tool and dev server
  • Web Animations API — light beam animation
  • GitHub Actions — CI/CD
  • GitHub Pages — hosting

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages