Basic Details

We all know the light that we get from the sun is white, meaning it contains about the same amount of every single color. If it had more green than other colors then the sun would give off green light. That's awesome. Except... it's not really true. There are certain colors that the sun does NOT give us. There are essentially holes in every rainbow. And the images below show exactly where those holes are.

Github | All output images

The sun's spectra (visible light)

Spectra of the sun in visible spectrum

The sun's spectra (full spectrum)

I also made a version that shows the NON visible spectrum. I can't use pretty colors for this because we literally don't have colors to map this part of the spectrum to. So I used greyscale (a gradient from black to white) to denote the intensity of this kind of light emited from the sun. The image looks blurry but that's an artifact of how precise the data is.

Spectra of the sun in all spectrums

The sun's spectra (annotated)

I also made a version that has text which describes what you're seeing.

Spectra of the sun, annotated