What this simulation shows
The simulation has two scenes, chosen under the stage. In Prism, a ray box sends a narrow beam into the left face of an equilateral glass prism, and a screen beyond it catches whatever comes out. In Colours, a lamp lights a ball on a table in a dark room, and an eye looks at the ball, through a filter if you choose one. Light off and Light on switch the source, and the light travels out again each time it comes on.
Why a prism splits white light
White light is a mixture of every visible wavelength. Glass slows them all, but not by the same amount: the shorter the wavelength, the more it slows, so violet has the largest refractive index and red the smallest. The model uses crown glass, with about 1.513 at the red end and 1.531 at the violet end. Because the two faces of the prism are not parallel, the second refraction adds to the first instead of undoing it, and each colour leaves in its own direction. This separation is called dispersion.
At 50° the readings show red turned through 38.5° and violet through 39.8°, a real spread of only 1.32°. That is why Exaggerate the spread is on at first: it multiplies the change in from colour to colour by six, so the fan is easy to see. Turn it off and the spectrum on the screen shrinks to a thin strip. The cards and the table always give the values for real glass.
The table in the details tab lists the seven traditional colours. Red has the longest wavelength and the lowest frequency; violet has the shortest wavelength and the highest frequency.
One colour at a time
Choose One colour and the beam has a single wavelength, which is called monochromatic light. It is still refracted twice and turned towards the base, but it arrives at the screen as one spot. A prism separates colours that are already present; it cannot create new ones.
Coloured objects
An object that light cannot pass through looks the colour of the light it reflects. A red ball reflects red and absorbs the rest. Under a green lamp there is no red to reflect, so it looks black. A white ball reflects every colour, so it takes the colour of whatever light reaches it, while a black ball absorbs everything.
The colours scene treats light as three broad bands, red, green and blue, drawn as separate lines. A yellow ball reflects both red and green, which together look yellow, so under a red lamp it looks red rather than black.
Filters
A filter in front of the eye passes its own colour and absorbs the others. Look at a green ball through a red filter and nothing gets through, so the ball looks black. Filters never add colour, they only take it away.
Course notes and simplifications
AQA GCSE (4.6.2.6, physics only) covers the colours of objects and filters. Cambridge IGCSE (3.2.4) covers dispersion by a prism and the order of the colours, with monochromatic light in the Supplement. The Punjab Class 10 book covers dispersion in section 14.8, including a thermometer past the red end that detects infrared. Real paints and filters reflect or pass a spread of wavelengths, so real colours are less clear-cut than the three-band model.