Prism
Guide light with mirrors and glass to every sensor. To get red, first you have to split the white.
Drag a piece to move it, or its round handle to turn it. Keyboard: Space picks a piece, arrows move it, Q and E turn it (with Shift, faster).
Level 1 of 7
Reflection
Turn the mirror until the light reaches the sensor. Light leaves a mirror at the same angle it arrives.
Sensors
White sensor · dark
Pieces you can move
Levels
Ask Claude
Answered by Claude Haiku 5.5, from Anthropic. What you write is sent to Anthropic to answer; we don't keep it.
What's happening
Light goes in straight lines until it meets a surface or a new material. A mirror sends it back at the angle it arrived. Glass slows it down, and that change of speed bends it at the surface: Snell's law. Inside glass, beyond the critical angle, nothing gets out: total internal reflection, the reason optical fibre and binoculars work. And glass slows violet a little more than red, so a prism fans white light out into its colours. Newton showed in the seventeenth century that the prism doesn't make those colours: it separates the ones white light already carries.
n₁ sin θ₁ = n₂ sin θ₂ · n(λ) = A + B/λ²
How to play
Seven levels and a free table. Drag a piece to move it, or its round handle to turn it; the buttons and the keyboard turn it half a degree at a time. Each sensor asks for a colour: the white one needs them all, a coloured one needs its own and no other. Pick a piece to see its angles, live.
How it's made
A ray tracer written for this game. Each colour of white light is a ray with its own wavelength, bent by the real index of dense flint glass (Schott SF10, with the Sellmeier formula from Schott's catalogue). The light is drawn by adding colours, so where they overlap they make white again, as they do in your screen's pixels. A script checks that every level can be solved. Mouse, touch and keyboard.
Want something like this for your brand or your product?
Send a signalMore games
Next word
Applied AI, explained
Neural network
Machine learning, made visible
Chaos
Scientific simulation and data visualisation
Murmuration
Agent simulation and emergence
Double slit
Quantum physics, made visible
Morphogenesis
Generative design and simulation
Cymatics
Real-time simulation and sound
Orbits
Physics simulation and interaction design
Fourier
Mathematics as art, and audio
Star colours
Colour science and design systems