The lines in the spectrum of a luminous body such as a star are similarly shifted toward the violet if the distance between the star and the earth is decreasing and toward the red if the distance is increasing.