How a prism spreads white light into colors | Club Charlie
Light changes direction when it crosses between air and glass because its speed changes. Different visible wavelengths change speed and direction by slightly different amounts. A second prism surface increases the angular separation, revealing a band from red to violet. The prism reveals a mixture already present in the incoming light. Its material bends the different wavelengths unequally, so they leave along different directions. Following those paths explains the coloured spread without imagining that the glass paints the light or adds new colours of its own.
White light contains a range of visible wavelengths.