When light enters raindrops, the drops act as tiny prisms. The angle of the light as it leaves each raindrop alters the visible color of the light, forming part of a rainbow.
UP NEXT