- I found the following sources helpful while writing this simulation:

- Real-time ink simulation using a grid-particle method - a method for real-time simulation of ink - in water using a coarse-grained fluid simulation with a particle simulation on top.

- Fast Fluid Dynamics Simulation on the GPU - a very well written tutorial about programming the Navier-Stokes equations on a GPU.

+ To learn more about the math involved, check out the following sources:

+ Fast Fluid Dynamics Simulation on the GPU - a very well written tutorial about programming the Navier-Stokes equations on a GPU. + Though not WebGL specific, it was still very useful.

+ Fluid Simulation (with WebGL demo) - this article has some nice, interactive graphics that helped me debug my code.

Stable Fluids - a paper about stable numerical methods for evaluating Navier-Stokes on a discrete grid.

By Amanda Ghassaei, code on Github. -- GitLab