Sandpile Simulation
The lattice is initialized randomly with some sand, then each frame a new grain is dropped at random on one site. Clicking with the mouse will drop 1000 grains on that site.