A tank of still water is simulated on a small grid. The hash places a few emitters that push the water and let ink into it: plumes rising from the floor, heavy drops that sink and curl into rings, jets fired at each other, a spoon stirred round the bowl or a scatter of short bursts. For a fixed number of steps the water carries itself and the ink along, stays incompressible, and is kept from settling too quickly by feeding its small eddies back in. The ink is then printed as a soft wash on paper or as smoke on a dark ground; it can also pool at its edges or settle into the grain. Press New seed for a fresh hash, then share the URL to show someone that exact piece.
Traits
The weights were set before any drawing code was written. They were then checked against a census of 2,000 seeds.
| Trait | Values (weight) |
|---|---|
| Palette | Sumi 22 · Indigo 16 · Marbled 18 · Smoke 16 · Ember 14 · Lagoon 14 |
| Flow | Plumes 24 · Drops 24 · Collision 18 · Stir 16 · Scatter 18 |
| Turbulence | Calm 30 · Curling 45 · Wild 25 |
| Ink | Wash 45 · Pooled 35 · Granulated 20 |
Credits
- Solver: Jos Stam, Stable Fluids (SIGGRAPH 1999) and Real-Time Fluid Dynamics for Games (GDC 2003): semi-Lagrangian advection, implicit viscous diffusion and pressure projection on a collocated grid with reflecting walls.
- Pressure: the Poisson equation is relaxed with Jacobi iterations, warm-started from the previous step, as in Mark J. Harris, Fast Fluid Dynamics Simulation on the GPU (GPU Gems, 2004).
- Eddies and buoyancy: vorticity confinement and density-driven buoyancy after Ronald Fedkiw, Jos Stam and Henrik Wann Jensen, Visual Simulation of Smoke (SIGGRAPH 2001).
- Printing: inks mix by the Beer–Lambert law on paper and as emission on dark grounds; the dye grid is refined with a Catmull–Rom spline. The implementation is original, written from these descriptions.
- Randomness: sfc32 by Chris Doty-Humphrey. The hash seeding, named sub-streams and verification follow Camille Roux’s genart skill (MIT).
- The palettes are original. The code was written with an AI assistant. It draws everything itself: no AI-generated images.