This project creates an interactive visualization of the Milky Way galaxy using HTML Canvas and JavaScript. The visualization features:
Simply open the index.html
file in a modern web browser to view the galaxy. No interaction is required, but the visualization will automatically adjust if you resize your browser window.
The galaxy is rendered on an HTML Canvas element with these key features:
Star generation with varying colors based on position in the galaxy:
Dust lanes that create darker regions in the spiral arms
Nebulae rendered as colorful, semi-transparent clouds:
Realistic spiral structure with logarithmic spirals
Animation uses requestAnimationFrame for smooth performance