Moving Diagrams

Why the sky is blue

Move the sun, thin the air, bend the physics, and watch the sky change in real time.

or tap to explore

This sky is live

This isn’t a photo. Every pixel is sunlight, computed as it bounces through the air to you. Grab the sun.

The sun moves, but the sky stays blue everywhere you look, even far from the sun. Something in the air sends blue light at you from every direction.

Blue bounces

Sunlight holds every colour. Air molecules are far smaller than light waves, and they deflect short waves much more strongly: scattering goes as 1/λ⁴.

Without the colour bias, the sky turns white-grey. Air itself has no colour. The blue sky is sunlight, sorted by wavelength.

Sunset is what's left

At noon, sunlight crosses a thin slice of air. Near the horizon it skims through far more, losing blue all the way.

At the horizon the light crosses about 38× as much air as at noon. Nearly all the blue has been scattered away. What survives is red and orange.

Climb out of the blue

If the air makes the blue, then less air should mean less blue. Take the elevator up.

At 30 km, only about 2% of the air is left above you. With almost nothing to scatter it, the sky overhead goes nearly black. The glow below you is the atmosphere you just left.

Why clouds are white

Dust, smoke and water droplets are much bigger than air molecules. Big particles scatter every colour about equally.

The blue fades to a milky white, and a bright glow forms around the sun. Hazy skies look pale, and clouds look white, for the same reason.

Your sky

Everything is unlocked. Try a sunset from 20 km up, or a dusk with no colour bias. Drag the sun anywhere.