Download "Mandelbrot"(2 sprites and 4 scripts) 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
Big words! They hurt! THEY HURT!!!!!!!!!!!
(view all replies)Comment Reply
i am confused...
(view all replies)Comment Reply
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...
(view all replies)Comment Reply
Amazing! I can't wait to see what's next from Chupi.
(view all replies)Comment Reply
Wow! I didn't think that this was possible in Scratch!
(view all replies)Comment Reply