Sandpile Lab
Grains of sand land on a grid. Any square holding four grains spills one onto each neighbor, and those spills can set off more. Everything here comes from that one rule.
Try this
Press Grow it.
Every square gets six grains and the pile spills until it settles. The lab takes that away from six and lets it settle again. What's left is the one pile that changes nothing when you add it to another, and it's made of arches inside arches.
Open Pile and press Pour.
65,536 grains dropped on the center square spread out into a disc of nested patterns.
Open Avalanches and press Start.
Grains land one at a time in random spots. Most do nothing, a few set off landslides, and on the chart the sizes fall along a straight line, a power law nobody tuned.
It all runs in your browser. Nothing you type or drop is sent anywhere.
How it works