- Click and drag a rectangle to zoom.
- To return to the initial position just click (and release) without dragging a rectangle.

You can look at the source code if you want, but I warn you it is quite hacked and completely uncommented. (Due to the applet needing to be less than 4K).

This applet represents the mandlebrot set.
Each point is coloured based on the following
formula:

```
z
```_{n+1} = z_{n}^{2} + z_{0}

where:

` z = x + iy (a complex number) `

Starting with the initial conditions (`z`

), we
iterate through the equation until the size of _{0}`z`

reaches some value, or we decide to stop iterating. So for example, in this
applet, we run through the equation for a maximum of 128 times or until
_{n}`z`

is greater than _{n}`2`

.
Then take the number of iterations we ran through (between 1 and 128) and use
this to colour the point on screen.
^{1/2} (root 2)

This applet should work fine in any java1.1 compatible browser and should at least draw the initial picture in a java1.0 browser (with the zoom disabled). However it does not seem to work at all using Netscape 4.7 on the Apple Mac, but it does work using Internet Explorer, because it uses Apples MRJ.