This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-09-02 03:14:08

CC29
New Scratcher
Registered: 2011-09-02
Posts: 1

Advanced Fractals

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

 

#2 2011-09-02 04:56:37

FRACTALx
New Scratcher
Registered: 2011-05-25
Posts: 9

Re: Advanced Fractals

Nice, I'm trying to make a Common Fractal Generator in Scratch. I'll have to research the Diffusion Limited Aggregation algorithm, though.

Offline

 

#3 2011-09-02 05:01:32

FRACTALx
New Scratcher
Registered: 2011-05-25
Posts: 9

Re: Advanced Fractals

WOW. I can make the mandelbrot set, and even the mandelbrot^3 set, but I don't know how do do what you are trying to do.

Offline

 

Board footer