Here's how it works:
* Refraction: Light travels at different speeds through different materials. When light passes from air into a prism (made of glass or other transparent material), it slows down and bends. This bending is called refraction.
* Different Colors, Different Speeds: Different colors of light travel at slightly different speeds in the prism. Red light travels the fastest, while violet light travels the slowest.
* Separation: Because of this difference in speed, each color of light bends at a slightly different angle. This causes the white light to be separated into its individual colors, creating a rainbow-like spectrum.
Let me know if you'd like to learn more about prisms or the nature of light!