THE CALCUTTA FIELDBOOKREADER PREFERENCES

A LITTLE TRANSPARENCY.

Your visit.
Your choices.

Choose whether YouTube players may connect to Google. Vercel’s cookieless page counts run by default, independently of this video preference.

01 The essentials

ALWAYS AVAILABLE

Sign-in cookies for the private Notes studio, and local settings for themes, reading tools and saved work. These support features you request.

Let YouTube players connect to Google when embedded videos appear. You can also load one video at a time without remembering this permission.

Change your mind any time. Keeping videos paused unloads active YouTube players. Read the full privacy note ↗

LIGHT, UP CLOSE An interactive explanation · Suvro Ghosh

Why soap bubbles
change colour.

Change the thickness. Move around the bubble.
Watch which colours come back.

Bright bands of reflected colour across a spherical soap bubble against black

Preparing the soap film…

Audio article
Checking narration…

Checking article narration…

Change one thing first

Why does a soap bubble change colour even though the liquid itself looks clear?

Try the bubble above. Choose Even thickness, set it to 400 nm, and move the thickness towards 200 nm. Watch the coloured bands change across its curved surface.

Then choose Flowing film, pause it and change the Viewing angle. You are looking around the bubble, bringing other patches into view. Its outline stays round. Changing one control at a time makes each effect easier to see.

A nanometre is one billionth of a metre. The numbers here describe the thickness of the liquid wall, not the size of the bubble. The wall is the thin film that separates the air inside from the air outside.

Two surfaces, one reflected colour

Some light reflects from the outer face of the wall. Some enters the liquid, reflects from the inner face and comes out again. These are the two faces of one small patch of wall, not opposite sides of the whole bubble. Their reflected light waves combine. Depending on wavelength and thickness, they can reinforce each other or reduce one another’s reflected contribution.

There is also a change in phase when light reflects at the air-to-liquid boundary. For a very thin soap film with air on both sides, the reflected contributions largely cancel. That is why the thinnest parts can look dark. Less reflected light does not mean the light has disappeared: an ideal transparent film also transmits light. OpenStax’s thin-film explanation develops this picture step by step.

White light contains many wavelengths. Change the thickness or angle and their reflected contributions change by different amounts. Your eye receives a different mixture, which you perceive as a different colour.

Let the thickness vary

With Even thickness, the wall has one thickness everywhere. It still shows coloured bands because a sphere curves away from you: the local angle changes from its centre towards its rim. Looking around an ideal, evenly coated sphere under uniform white illumination leaves the same radial pattern.

Flowing film adds different thicknesses in different places. Its control is the average over the whole bubble. Pause at a frame you like, then look around it. The pattern belongs to the surface, so different patches move into view. Reset restores the starting composition, and Save image keeps the current view without the controls.

The colours are easier to examine against the dark background. A real bubble reflects its surroundings, and those surroundings affect what you see. A bright window, a dark wall and a cloudy sky do not provide the same illumination.

What this example calculates

The colour model represents a transparent, water-like film with air on either side. At each point on the visible wall, it calculates reflection using the local surface angle. It combines visible wavelengths into a display colour and uses a lookup table to keep interaction responsive. Computing thin-film colour requires attention to the spectrum; Belcour and Barla’s graphics research explains why a simple three-channel shortcut can miss important behaviour.

The flowing pattern is an authored animation. It does not calculate drainage, surface chemistry or bursting. This rendering uses the nearer wall; it does not trace light through the bubble to its far side. The material and illumination are simplified, and brightness and saturation are enhanced for the screen. Use it to understand the relationships, rather than to predict the exact colour of a real bubble.

The visual starting point was Paul Bakaus’s Radiant shader collection. This piece gives its own optical calculation a small set of controls and a familiar question. You can leave the motion paused throughout: changing one value is enough to see something new.

Colour data: CIE (2019), 1931 standard observer and standard illuminant D65, sampled here every 5 nm from 380–780 nm. The sampled table retains the datasets’ CC BY-SA 4.0 licence.

Quick reference and FAQ

A soap bubble gets its colours from light reflected by the two faces of its very thin wall. Change the wall’s thickness to change the colours, or look around the bubble to see different patches of its flowing surface.

Key Terms

  • Thin-film interference
  • Reflection
  • Wavelength
  • Film thickness
  • Viewing angle

Frequently asked questions

Why do soap bubbles change colour?

Light reflected from the front and back surfaces of the thin soap film combines. The reflected mixture depends on the film’s thickness, the light and the viewing angle.

Why does Even thickness still show coloured bands?

A sphere curves away from you towards its edge. Even when its wall has one thickness, different parts reflect light at different local angles, producing radial colour bands.

Is the flowing film a fluid simulation?

No. The colour calculation uses a simplified optical model, while the flowing thickness pattern is an authored animation. It does not predict how a particular soap solution drains or bursts.

Can I use the example without animation?

Yes. Pause the film and change the controls at your own pace. Reduced-motion preferences start it still; a static image and the article remain available if WebGL cannot run.

Word Cloud

Word cloud for Why Soap Bubbles Change Colour

Comments

Read the conversation or leave a thought for review. Comments load when this section is in view.