Here’s another one for the mind-blown category and it is part of a library of GPU based simulations.
Simulation is based on the “stable fluids” method of Stam [1,2]. For simplicity the application does not perform diffusion, but the used Advection algorithm causes it to diffuse anyway (due to bilinear interpolation of the 4 closest texels).
Well that clears that up then! It’s fairly safe to say that I don’t really understand the maths going on here, but if you properly want to get your geek on, then I’d check out the other examples too.
2D fluid dynamics simulation in WebGL
[via @henrikbennetsen]
[UPDATE] It seems that fluid dynamics are all the rage at the moment. Check out this canvas based interactive version by @ohunt via zacharyjohnson.