Doppler Shift of Light

Imagine we are viewing from right. The stationary star in the middle is emitting a yellow ray of light. The top star is emitting a ray which would have been the same color except this star is moving towards us so the wave is squashed and becomes blue - we say it has been "blueshifted". The bottom star is moving away from us and the wave is stretched and becomes red - we say it has been "redshifted".