Toroidal Vortex

500,000 particles — flow field, spatial grid hash, density pressure and mouse repulsion all solved in a 8 KB WebAssembly module. No libraries.

wasm physics · webgl2 sprites
fps
–
physics
–
render
–
particles
–
grid
–
occupied
–
Field
2.80
1.50
0.30
0.60
1.00
velocity → colour
slowfast
drag orbit · wheel zoom
space pause · g colour mode · r reset · h hud
compiling module…