Contents
Soap bubble
The rainbow color of soap bubbles is generated by the interference of light, and the color changes depending on the thickness. This time, I used a Python library called Colorpy to generate a soap bubble gradation in advance. By making it correspond to the concentration of fluid simulation, it expresses the movement of soap bubbles that move swayingly.
Live demo
Note: this demo is heavy. It might takes a long time.

【Unity or Processing】Soap Film Simulation
Soap bubble The rainbow color of soap bubbles is generated by the interference of light, and the color changes depending on the thickness. This time, I used a Python library called Colorpy to generate a soap bubble gradation in advance. By making it correspond to the concentration of fluid simulation, it expresses the movement of […]
Download
Processing
Source code is straightforward.
GitHub – Nekodigi/Processing-Soap-film: Soap film based on fluid sim and colorpy.
Soap film based on fluid sim and colorpy. Contribute to Nekodigi/Processing-Soap-film development by creating an account on GitHub.
Unity
By far faster because it uses GPU.
GitHub – Nekodigi/Unity-Soap-Film: Soap film based on fluid sim and colorpy.
Soap film based on fluid sim and colorpy. Contribute to Nekodigi/Unity-Soap-Film development by creating an account on GitHub.
Reference

ColorPy
ColorPy is a Python package that can convert physical descriptions of light – spectra of light intensity vs. wavelength – into RGB colors that can be drawn on a computer screen. It provides a nice set of attractive plots that you can make of such spectra, and some other color related functions a…