Fluiddraw P5 [LATEST]
The p5 environment is particularly suited for this because of its immediate feedback loop. Functions like mouseDragged() can add velocity and dye simultaneously:
At its heart, a FluidDraw p5 sketch is built upon a real-time fluid solver. Since full Navier-Stokes simulations can be computationally expensive, p5 implementations often rely on simplified methods: cellular automata, smoothed-particle hydrodynamics (SPH), or, most commonly, a grid-based velocity field updated via Eulerian integration. A typical approach involves: fluiddraw p5