One of the primary ways that astronomers study stars is to spread their light out into a rainbow, which we call a spectrum, and from that rainbow, we can learn something about what the stars are composed of and how hot they are, how bright they are, and how they're moving, at least how they're moving toward or away from us.
— Nancy Roman