This demo is inspired by a recent video on Steve Mould’s channel. It’s about creating a movable hole in soap film with a loop of cotton thread (the photo shows Simon sticking a pencil through such a hole). Once in the soap membrane, the cotton thread forms a perfect circle. It’s because the soap film tries to minimise its area and compress as much as it can. The only way that can happen is to maximise the area of the hole. And as we know, with a fixed perimeter, the biggest area that you can make with it is if you form that perimeter into a circle, Simon explains as I’m writing this.
Simon learned this trick from Physics Girl. Scientists actually perform similar experiments to mimic real hurricanes!
“Just recycling some building blocks here”, I heard Simon say Monday.
Simon put the project on GitHub the following day.
Direct link to the animation (click on the canvas to make the bubbles appear): https://simon-tiger.github.io/bubbles/
You can also both the code and play with the animation via the p5.js web editor (hit Download to get the animation on your computer): http://alpha.editor.p5js.org/simontiger/sketches/r1l_4Gg6l
A couple videos of the making of:
The instructions are in English which doesn’t seem to pose any difficulty.