Wow! I didn't think that this was possible in Scratch!
Download this project!
Download the 2 sprites and 4 scripts of "Mandelbrot" and open it in Scratch
Project Notes
USE: Set the pixel size and maximum iteration count with the sliders, and hit the green flag go.
-Big pixels make the picture blockier, but doubling the pixel size quadruples speed.
-Fewer iterations give less detail toward the inside and (because of the color scaling) make more abrupt color changes. More iterations make a better picture but take much longer.
HOW IT WORKS:
-Image drawing: It draws rows of pixels by moving forward one brush-width with the pen down, then changing the color. After each row, it picks up the pen and returns to the start of the next row, one brush-width down. This takes two nested repeats.
-Fractal: For each point, it initializes the complex numbers C and Z to the current point. It then repeatedly applies Z=Z^2+C until Z escapes from a circle of radius 2. Iteration count gives pixel color. This is the innermost repeat-until.
Comments
You need to be logged in to post comments
Add a Comment
I had it on 1 and 50 and left it up for 4 hours, still not done yet XD What I can see is awesome though. Fractals are fascinating.
Big words! They hurt! THEY HURT!!!!!!!!!!!
yep
i am confused...
ur right
I am truly impressed! I didn't think it was possible in Scratch. I'm off to see if anyone's done the Julia set next...
Amazing! I can't wait to see what's next from Chupi.
Wow! I didn't think that this was possible in Scratch!