A thin transparent film reflects light from both its top and bottom surfaces. The two reflected waves overlap and interfere. Because the extra distance travelled by the lower wave depends on the film's thickness, refractive index and your viewing angle, different colours are reinforced or cancelled — giving the swirling iridescence of soap bubbles and oil slicks.
How it works
Split: incoming white light partly reflects at the top surface and partly enters the film.
Travel: the transmitted ray crosses the film, reflects off the bottom, and returns — gaining an optical path of 2·n·d·cos θ.
Phase shift: reflection off a denser medium flips the wave by π (half a wavelength), shifting the bright/dark condition.
Recombine: for each wavelength the two waves add; those that arrive in step look bright, those out of step cancel, and the survivors set the colour.
Film thickness d — sets which wavelengths reinforce.
Viewing angle θ — tilts the film, shrinking cos θ and shifting colours toward blue.
Refractive index n — water ≈ 1.33, oil ≈ 1.47; scales the path difference.
Surface variation — how much the thickness ripples across the film.
Film type — soap bubble (one phase flip) vs oil-on-water (two flips).
Pause / Reset / ? — freeze the animation, restore defaults, open this panel.
Did you know?
The same physics powers anti-reflection coatings on camera lenses and glasses: a film roughly a quarter-wavelength thick makes the top and bottom reflections cancel, so almost no light bounces back and more reaches the sensor.