An Introduction to a Mandelbrot Applet
You're just one link away from an applet that computes and displays the Mandelbrot set. What's the Mandelbrot set? Well, it is the set of points on the complex number plane for which, when the coordinates of the point are plugged into a little iterative formula, the value of the formula never goes above '4', no matter how many iterations are computed. Of course, we don't have time to wait for "no matter how many iterations", so we pick a number, the iteration limit, and only loop through the calculation that many times. An image of the result is rendered by coloring each point according to how many times the calculation loops before the value goes above 4 at that point. Any point whose calculation value is still <4 after reaching the iteration limit is deemed to be a member of the Mandelbrot set and is colored black.
The applet has a few features which are controlled through the mouse:
BIG (500 x 500)Choose BIG if you are patient and/or have a fast machine. For reference, the applet was developed on a 120MHz PowerMac 604 and I usually found it fast enough for the big size. (But then, I'm patient because I wrote the thing.) Ironically, I can't look at this with my own browser because the Java implementation in Macintosh Netscape 4.76 has a flaw that prevents it.
LITTLE (200 x 200)
Something you might notice is that if you zoom in far enough, the picture gets distorted. This is because the area on the complex plane has become so small that even double precision numbers do not provide enough resolution to divide it up into the requisite number of pixels. The program doesn't check for this.