Clever Quest Lab ← Labs

Fractal Explorer

Zoom into the Mandelbrot set, watch one orbit decide a colour and pick Julia sets straight from the picture.

Mandelbrot set

Drag to pan, scroll or pinch to zoom, double-click or double-tap to zoom in. With Orbit or Julia set on, a marker picks the point c: it follows the mouse until you click, and on touch you tap or drag it.

Readouts

Magnification
1×
Iteration limit
200
Centre
0
Pixel size
0
Render time
0 ms

Places

Formula and detail

Automatic raises the limit as you zoom in. Moving the slider switches to manual.

Colours

Share and save

The link stores the position, zoom, formula, colours and the Julia point. Save PNG stores the large picture.

How to use it

The picture is a map of the complex plane. Every pixel stands for one complex number c, and its colour reports what happens when you start at z = 0 and repeat the step z → z² + c. Points whose values stay small for ever get the interior colour: together they form the Mandelbrot set. All other points run away to infinity, and their colour shows how quickly.

Drag to move and scroll or pinch to zoom. Press Orbit to see the first 50 steps of the marked point drawn as a path, with a note saying whether it escapes or settles into a cycle. Press Julia set to open a second picture: the Julia set that belongs to the marked c. The Places buttons jump to well-known spots.

Controls

How it works

The Mandelbrot set is the set of all c for which the orbit of 0 under z → z² + c stays bounded. One theorem makes it computable: once |z| is greater than 2, the orbit is certain to escape to infinity. So the program repeats the step until z gets large or the iteration limit runs out. The number of steps taken, the escape time, picks the colour. To avoid visible bands, the whole number n is replaced by a smooth value, measured when |z| first passes a large radius R = 256:

ν = n + 1 − log2( ln |zn| / ln R )

The big heart-shaped region is the main cardioid, where the orbit settles on one fixed point. The disc on its left, centred on −1 with radius ¼, holds the orbits of period 2. Every smaller bulb around the edge has its own period: 3 for the large bulbs at the top and bottom, then 4, 5 and so on. The program tests the cardioid and the disc with a formula and watches for orbits that repeat, which saves most of the work.

Along the boundary, small warped copies of the whole set turn up at every scale, each wrapped in spirals and filaments. The boundary is so crinkled that its Hausdorff dimension is 2, as Mitsuhiro Shishikura proved in the 1990s. The area of the set is known only from numerical estimates: about 1.5066.

A Julia set uses the same step but keeps c fixed and lets the starting point vary. The two families are tied together: the Julia set is connected exactly when c lies in the Mandelbrot set. Otherwise it falls apart into a dust of separate points.

Things to try

Frequently asked questions

Why does zooming stop?

The page calculates with double-precision numbers, which hold about 16 significant digits. At a magnification near 1013 neighbouring pixels differ only in the last digit, so they can no longer be told apart. Going deeper needs much slower arbitrary-precision arithmetic.

Why do the interior areas shrink when I raise the iteration limit?

A point is drawn as inside only because it has not escaped yet. Close to the boundary an orbit can need thousands of steps to escape, so a higher limit shows more detail but takes longer to draw.

Who discovered the Mandelbrot set?

Robert Brooks and Peter Matelski printed the first crude pictures in 1978. Benoit Mandelbrot studied the set with far better images at IBM in 1980 and made it famous. The name was given by Adrien Douady, who worked out much of its mathematics with John Hubbard.

What are the other formulas?

The Burning Ship takes the absolute values of the real and imaginary parts of z before squaring. The Tricorn squares the complex conjugate of z. The Multibrot sets replace the square with a third or fourth power.

What do the colours mean?

Only the escape time. Points of one colour take about the same number of steps to get away. The palette repeats in cycles, so the colours carry no meaning beyond that.

More free games and simulators