My understanding is that when an object moves away from you it increases the wavelength of the light presenting with a colour that is on the red side of the colourscale. Scientists also are able to determine what elements are present on planets based on the light it emits. How can they tell the difference?
I’m sorry for possibly using the incorrect terminology! Thanks in advance folks!
Edited the post because previously I had suggested that shorter wavelengths tended to the red side when in fact longer wavelengths tended to the red side of the colour spectrum.