← Playground

Fluid Simulation

royhp.com
Colour
Canvas

Drag your pointer (or finger) across the canvas to inject dye and velocity — the smoke swirls, advects, and diffuses while a pressure solver keeps the flow divergence-free. Push the dye and velocity dissipation sliders to make trails linger or fade, change the splat radius, toggle Rainbow vs a single teal, or Clear the field. Multi-touch works too.