Get the latest tech news
Diffusion Limited Aggregation (1991)
Sample source code (brute force): dla2D.zip Many attractive images and life-like structures can be generated using models of physical processes from areas of chemistry and physics. One such example is diffusion limited aggregation or DLA which describes, among other things, the diffusion and aggregation of zinc ions in an electrolytic solution onto electrodes.
Drunks leave the taverns and stagger randomly around the square until they finally trip over one their insensate companions at which time, lulled by the sounds of peaceful snoring, they lie down and fall asleep. New points are introduced at the borders and randomly (approximation of Brownian motion) walk until they are close enough to stick to an existing black pixel. Paul Bourke Poster: Graphite (ACM Siggraph), Dunedin November/December 2005 See also: Computer and Graphics, Volume 30, Issue 4 Diffusion Limited Aggregation (DLA) has usually been studied in 2 dimensions as a model of fractal growth processes such as branching, lightning, snowflakes, mineral deposits, and coral.
Or read this on Hacker News