The spectrum of a star that is observed on Earth changes depending on the relative velocity of the star and Earth.
The dark vertical lines indicate wavelengths that are absorbed by elements in the star.
Increase the velocity to 5 km/s and observe how the spectrum of the star changes.
Spectrum of the Star
Reference Spectrum
Velocity of the star relative to Earth (kilometers per second):
Distance between Earth and the star is increasing.