This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

dibo
dibo presents ...

2008/10/29

Mandelbrot

Press the left button to zoom into the mandelbrot set.
Press any other button to zoom out of the mandelbrot set.
The clicked point is the new center of the image.

7191 views / 16 in the last 7 days

4 votes | 0 in the last 7 days

Tags: simulation demo with-source

This scenario is a member of: Marla's Favorites


open in greenfoot
Your browser is ignoring the <APPLET> tag.
RHE_THSRHE_THS

2008/10/29

Nice idea using recursion (I especially like the Mandelbrot idea)! =P Very colorful too. Nice start!
A new version of this scenario was uploaded on Wed Oct 29 12:52:28 UTC 2008
t3hwookie90t3hwookie90

2008/10/29

I agree with RHE. I like the recursion idea. What you might want to do is try to do is make it so its not so "processor dependent" in that it takes a few good seconds for it to zoom in. other than that, i think this could turn into a sweet maze/surfing game if you so wish.
dibodibo

2008/10/29

I wanted to develop an interactive flight through the mandelbrot set. But unfortunately the calculations are too expensive :-(
mikmik

2008/10/29

Not enough for a fly-through, but maybe there are some possible improvements. On my machine (MacOS X 10.5.5 on Intel), the following change helps. Replace: this.image.setColor(colPeriphery); this.image.drawLine(x, y, x, y); with this.image.setColorAt(x, y, colPeriphery); This will be highly dependent on the actual system's graphics subsystem, so I am not sure whether you get similar results on other systems. But on my machine that was faster by a factor of about 3.
A new version of this scenario was uploaded on Thu Oct 30 07:29:33 UTC 2008
A new version of this scenario was uploaded on Wed Mar 10 15:06:59 UTC 2010
A new version of this scenario was uploaded on Wed Mar 10 15:07:25 UTC 2010
A new version of this scenario was uploaded on Wed Mar 10 15:07:36 UTC 2010
This is just... wow.

Want to leave a comment? You must first log in.

Who likes this?

DoctorProfessorYoshi Advenging marla t3hwookie90