Skip to content

RolandR/diffusion-limited-aggregation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diffusion-Limited Aggregation

Particles undergoing random motion adhere to a seed when they touch.

Screenshot

Live demo

There's a number of settings which can be changed in the url:

  • particles
    Sets the number of particles in the simulation. Default is 16000.

  • scale
    Ratio of window size to canvas size. The default of 0.5 means that 1 pixel of the canvas is 2x2 pixels on-screen.

  • seed
    Sets the initial seed to which particles will attach. Possible values are:

    • center (default)
      One pixel in the center of the screen
    • box
      A seed surrounding the entire screen
    • ground
      A seed running along the bottom
    • sky
      A seed running along the bottom
    • random
      Seeds are randomly placed. The ´randomSeeds´ parameter sets the amount of seeds.
  • realtime
    When set to true, each particle will move by only one pixel per simulation frame. When set to false, as many steps will be calculated as possible.