I am trying to create a fractal that adheres to the Diffusion Limited Aggregation algorithm, and have gotten stuck on how to implement the algorithm in Scratch. Any help would be greatly appreciated.
This should work to create a fractal that follows the Diffusion Limited Aggregation algorithm.
Generate random numbers with a Gaussian distribution.
Create an XY plane.
Place the "seed" at the center of the plane
Calculate the angular position of the particle. (Random angle between 0 and 2pi.)
Determine X and Y positions for the particle. (Note: X Max and Y Max should be equal.)
Determine if the particle moves in the X or Y direction. This could be done by generating n, such that 0 < n < 1 and n < 0.5 is vertical and n > 0.5 is horizontal.
Determine how far the particle should move ("jump").
Repeat
Offline