← All animations

🔭 Reading Starlight

A star is too far to visit, yet we know its temperature, what it's made of, and how fast it's moving toward or away from us — all from a thin sliver of its light, spread into a rainbow. The trick is spectroscopy: split starlight by wavelength and a wealth of physics falls out. Scroll through to tune a star's heat, watch its colour and spectrum shift, and fingerprint the elements hiding in its glow.

1. Temperature paints the colour (Wien's law)

Every hot object glows with a blackbody spectrum. Hotter stars peak at shorter (bluer) wavelengths — that's Wien's law, λpeak·T ≈ 2.9×10⁻³ m·K. Slide the temperature and watch the star's colour slip from cool red through yellow to searing blue-white, while the intensity curve below shifts its peak. Astronomers sort stars into classes O B A F G K M (hottest to coolest).

5800 K Class G · yellow peak ≈ 500 nm

2. Absorption lines — the chemical fingerprint

The star's hot interior makes a smooth continuous spectrum. On the way out, light passes through cooler outer gas, and each element drinks up its own exact wavelengths — leaving dark absorption lines. The pattern is a fingerprint: match the lines to lab measurements and you know what the star is made of. Toggle elements to stamp their lines onto the spectrum, and slide redshift to slide every line together (the star moving away stretches its light toward red).

v ≈ 0 km/s · z = 0.000

3. Putting it together — one spectrum, three answers

Spread a single star's light and read it like a barcode. Three independent stories hide in the same strip:

From temperature to chemistry to velocity — all decoded from light that left the star years, or billions of years, ago.