Shine white light into a glass prism, catch the colours that come out, and find where each one lands.
What you'll do
White torch light shines into a glass prism. What comes out the other side?
Slide the star up or down into the red light.
Raindrops split sunlight just like the prism does. That's how rainbows form.
Now slide the star into the green light.
Last one. Slide the star into the violet light.
How accurate it is
Exact
White light is all the colours mixed together, and a prism bends each colour by a different amount.
Violet bends the most and red the least, so the colours always come out in the same order.
Simplified
The colours are spread eight times wider than a real glass prism spreads them, so they're easy to see.
In a raindrop the light also bounces once inside before it comes out. That bounce isn't shown here.
The light is drawn as one thin ray, so you can see each colour's path through the glass. A real torch beam is wider, and inside the glass its colours mostly overlap and still look white.