Oil on water
A thin oil layer has water beneath it, rather than air. The second boundary changes reflection amplitudes and phases, so the soap-film model cannot simply be reused.
A universe of color.
A film thinner than light.
Move the thickness slider. Watch light become color—and disappear.
Why do soap bubbles turn rainbow colors?Computed interference. Approximate flow. No rupture prediction.
Same light. Different nanometers.
Measured at the crosshair on the film.
Physical reflectance, before display gain.
Includes the front-surface phase reversal.
Light reflects from both sides of a soap film. Those reflections travel different optical distances and combine. Some wavelengths become brighter; others cancel. The result is structural color, rather than pigment.
Here d is film thickness, n is refractive index, and θₜ is the refracted angle inside the film. Snell’s law relates it to the angle in air. Reflection from air into the film adds a π phase shift.
Wave view: two-beam schematic, normalized amplitudes. Spectrum: unpolarized Fresnel calculation including multiple reflections.
380–780 nm / R
Cyan: front · violet: back · white: sum (550 nm)
As a soap film becomes extremely thin, the two reflected waves nearly cancel across visible wavelengths. Against a dark background, this region can look black. The light is still here. So where did the color go?
Compare a 420 nm film with a 10 nm film under your current light and angle. This does not determine when a real bubble will pop: evaporation, surfactants and disturbances also matter.
420 nm
10 nm
Computed comparison; brightness uses the selected display mode.
Choose a screen color. Search the model for similar thicknesses under the current settings. Similar colors can have different thicknesses.
Top local matches, 2 nm sampling, OKLab distance. Approximate candidates, not a unique measurement.
Move the slider below to match the target. The score compares perceived color, so more than one thickness can be correct.
Target
Your film
Your brush changes thickness, not pigment. Draw on the canvas, then change the angle or illumination above: the entire painting changes with the physics.
Your painting is saved in this browser when storage is available. Links share optical settings only. Keyboard: arrows move the brush; Space paints.
A thin oil layer has water beneath it, rather than air. The second boundary changes reflection amplitudes and phases, so the soap-film model cannot simply be reused.
A coating can reduce reflection at selected wavelengths. Its index, substrate and design thickness determine the result; real lenses often use multiple layers.
The changing air gap between curved and flat glass creates circular interference fringes. Geometry turns a thickness map into rings of light.
These are explanatory comparisons, not additional material simulations. The interactive model is air–film–air.
The phase accumulated inside the film depends on the internal angle through cos θₜ. Fresnel reflection also varies with angle. A different angle therefore changes the spectrum reaching your eye.
Not in general. Different spectra can produce similar screen colors, and illumination, angle and index all affect the result. Additional measurements can help narrow the candidates.
It computes unpolarized, multiple-reflection Fresnel reflectance for a lossless, non-dispersive air–film–air layer. Visible light is sampled every 5 nm from 380 to 780 nm, integrated with CIE 1931 2° observer data and D65, then converted to sRGB with gamut clipping. Monochromatic presets use a narrow Gaussian band. The flowing thickness field and drainage are artistic approximations. Screen calibration and the optional ×5 display gain affect appearance.
Start at 420 nm and normal incidence. Reduce thickness to 10 nm, compare the spectra, then return to 420 nm and change only the angle. Finish by matching a target color and discussing why more than one thickness may work.