psychoactive.com · simulations
Foam
Bubbles in a two-dimensional foam relax toward cells that meet three at a time. Here the relaxation is Lloyd's algorithm: each bubble center moves toward the center of its region.
The code is in this page's source.
More simulations · Andrés Gómez Emilsson · @algekalipso