Presets
Playback
Game
Speed, how many bubbles, their sizes and the fan on the bubble machine.
Air and weather
These act on every bubble right away.
What is inside the bubble
Applies to bubbles blown from now on.
The soap film
Starting thickness applies to new bubbles; surface tension, viscosity, drainage and index act at once.
Camera
Layers
Quality
Model checks
The science
Why a bubble is round: surface tension and Laplace pressure
A soap film has two surfaces, each pulling with surface tension gamma (about 25-30 mN/m for soapy water, 72 mN/m for pure water). Shrinking the bubble by dR saves surface energy dE = gamma * 2 * 8 pi R dR, which the gas pressure must pay for: dP * 4 pi R^2 dR = dE, so the pressure inside exceeds the pressure outside by dP = 4 gamma / R. Small bubbles are squeezed harder than big ones (a 2 cm bubble: about 5.4 Pa; a 4 cm bubble: about 2.7 Pa). The graph shows the curve and every bubble in view.
Why a bubble floats, hovers or sinks
Three weights compete: the gas inside rho_gas V g, the soap film 4 pi R^2 h rho_water g, and the buoyancy of the displaced air rho_air V g. Warm breath is a little lighter than room air, helium much lighter. As the breath cools by conduction (time constant rho_gas c_p R^2 / (3 k), roughly 10 s for a 3 cm bubble) it gets heavier and shrinks (R follows T^(1/3) at constant pressure), so many bubbles rise first and sink later. Air drag is quadratic, 1/2 rho_air C_d A v^2 with C_d = 0.47, which gives a terminal speed v = sqrt(2 F / (rho_air C_d A)).
Why a bubble has colours, and why it bursts
Light reflects from the front and back surface of the film. The two waves differ by 2 n h cos(theta_t) and interfere, with the Fresnel reflectances of both interfaces; the screen colour is the sum over the visible wavelengths. Bands are one half wavelength of thickness apart (about 200 nm in water). Water evaporates from both surfaces so the film thins by e = 2 J / rho (here J = 6e-5 kg m^-2 s^-1 times the dryness of the air) and gravity drains the top thinner than the bottom, dh/dt = -B rho g h^3 / (12 eta R). When the top film is only a few tens of nanometres thick it reflects almost nothing (the black film) and the bubble bursts; the model bursts it at 20 nm.
Honest simplifications
The evaporation constant is an effective value chosen so that a 0.7 um film lives about 12 s in this window; real bubbles live from seconds to minutes. Pure lubrication drainage between rigid surfaces is far too slow, so a boost factor stands in for marginal regeneration and Marangoni flows (real values are 100-10000). The film profile is a simple top-to-bottom gradient, not a full free-surface flow; the wobble is cosmetic; bubbles do not collide or merge; the optics uses unpolarised light from a flat white source, so colours are indicative, not photometric.
What to try
- Press Start game and tap bubbles before the colours fade; a bubble caught while its top is thinner than 100 nm (silver or black) earns a thin-film bonus.
- Choose Helium party: the lighter gas lifts bubbles to the ceiling quickly. Then choose Cool heavy bubbles and watch them sink.
- Pick Dry desert air: evaporation is nearly 2x faster, so the same bubbles burst sooner.
- Pick Giant glycerine bubbles: the thick, viscous films live much longer and show many more colour bands.
- Raise the surface tension to 72 mN/m (pure water) and watch the Laplace pressure readout rise; look at where the bubbles sit on the 4 gamma / R curve.