A Simple fluid simulation

Based on Jos Stam's paper Real-Time Fluid Dynamics for Games which simulates the Navier-Stokes equations for incompressible fluids.

Move the mouse over the canvas to move the fluid, click and drag to add density (touch and drag on mobile).

View source code on github.com