Fluids
Soap Bubble
A soap bubble on a wand, with swirling rainbow colors, a film that drains and turns black at the top, and finally a pop; three glowing orbs swing around it painting ink on the film.
Drag on the film to swirl it, or stab fast to pop it; tilt to change which way it drains; tap after the pop for a new bubble. A finger on an orb carries and throws it.
- The idea
- The colors are real thin-film interference from the simulated thickness of the film, which flows with gravity and surface tension until it is thin enough to burst. The orbs follow a real three-body orbit.
- With music
- Kicks speed up the orbs; bass brightens their ink trails. Tap Demo beat for our own beat, or Your music to let it hear the room.
- How it runs
- It’s the same live simulation as in the Everdust apps, running in your browser on WebGL 2. If your device struggles, it lowers the detail a step at a time to keep the motion smooth.
Why are soap bubbles rainbow colored?
A soap bubble is a thin layer of water held between two layers of soap molecules, often less than a thousandth of a millimeter thick. The colors don't come from any dye. They come from light bouncing off both surfaces of the film.
Some light reflects from the outer surface and some from the inner one. The two reflections travel slightly different distances, so their waves can line up and strengthen each other or fall out of step and cancel. Which colors strengthen depends on the thickness of the film at that spot. As the thickness changes across the bubble, so does the color. This is called thin-film interference, and it also colors oil on a wet road. Newton studied these colors carefully in the 1600s.
The film never sits still. Gravity drains water down to the bottom, surface tension pulls it around, and the swirls of color follow the flow. At the top the film keeps thinning. When it becomes much thinner than a wavelength of light, the two reflections cancel for every color, and the film looks black. A black spot near the top means the bubble is close to bursting.
In this simulation the colors are calculated from the film's simulated thickness, which flows under gravity and surface tension until it is thin enough to pop.
This is just a taste
Loved Soap Bubble? There are many more worlds in the app.
The Everdust app has every world at full detail, plus games made of physics, stories you step inside, Create (turn any photo into a world), and hand tracking on Vision Pro and Quest. Out now on the App Store for iPhone, iPad, Vision Pro and Apple TV, on Google Play for Android and on the Meta Horizon Store for Quest; a free download for Mac from everdust.ai/mac.
- iPhone & iPadTouch toys, games, storiesApp Store
- AndroidPhones and tabletsGoogle Play
- Apple Vision ProStep inside the worldsApp Store
- iPhone & iPadTouch toys, games, storiesApp Store
- MacVisuals for any music you playFree download
- Apple TVAmbient mode for the living roomApp Store
- Meta QuestHands or controllersHorizon Store
- AndroidPhones and tabletsGoogle Play
- PC VR on SteamFull PC powerComing