Somewhat Basic Falling Sand 2025.7.13
Left click & drag - put material on the canvas
Click & drag while pressing a: put air instead of sand (i.e. erase material)
Click & drag while pressing s: put water instead of sand (note: bad cell automaton rules; very wonky)
Click & drag while pressing w: put wall instead of sand
Press c to clear canvas
A basic version which only has sand and water also exists. Note that the basic version is not necessarily 1/3 easier to implement.
Full source (requires p5js)
Back