Traditional Newtonian optics indicate that is by refracting the differing frequencies of white light so they come out of a medium at separate angles so they are visible as ROYGBIV instead of as white light. Water droplets will serve. Ya? You have some other answer in mind, you wily Canuck?
A