RolandR / diffusion-limited-aggregation

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

Home Page:https://draemm.li/various/diffusion-limited-aggregation/?particles=16000&scale=0.5&seed=center&realtime=false

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://draemm.li/various/diffusion-limited-aggregation/?particles=16000&scale=0.5&seed=center&realtime=false

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 86.7%Language:HTML 7.8%Language:CSS 5.6%