Original: Light from the star is analyzed by splitting it up by a diffraction grating , subdividing the incoming photons into a spectrum exhibiting a rainbow of colors interspersed by absorption lines , each line indicating a certain ion of a certain chemical element .
Simplified: Star temperature can be measured by looking at its spectrum , the type of light that the star shines .