Mathematician + Developer + Cat DadMath, code, cats, books and faith. Since 2024.
Fractal Explorer
Shapes with detail at every scale. Dive into the Mandelbrot set until the picture is a trillion trillion times bigger than where you started, morph Julia sets by dragging a dot, watch Newton's method fight over the plane, or design a carpet that you can zoom into forever. Scroll or pinch to zoom, drag to pan, press Space to dive.
Explorer
WebGL2 float textures are required for this explorer.
Controls
The math
A fractal is a shape that does not get simpler when you magnify it. Every picture on this page comes from repeating one small rule and asking what happens in the long run. For most of them the rule acts on a complex number , a point of the plane, and the color of a pixel records the fate of the point that started there.
The Mandelbrot set. Pick a complex number , start from and repeat
If the sequence stays bounded forever, belongs to the Mandelbrot set (drawn dark). Otherwise it flies off to infinity, which is certain as soon as , and the pixel is colored by how long that took. To avoid visible steps the integer count is replaced by the smooth value
The boundary of is as complicated as a curve can be: Shishikura proved that its Hausdorff dimension is exactly 2. It is also full of small copies of the whole set, each wrapped in its own decorations, and the deep dives in the picker end on some of them.
The Burning Ship changes one thing: before squaring, both coordinates are made positive,
The absolute values fold the plane along the axes, which breaks the smoothness that gives the Mandelbrot set its round bulbs. What appears instead is angular: masts, rigging and whole fleets of smaller ships along the real axis to the left of the big one.
The Tricorn (or Mandelbar) conjugates before squaring,
Conjugation is a reflection, so this map is not complex-differentiable, and the set has a three-fold symmetry instead of the Mandelbrot set's single mirror line. Unlike the Mandelbrot set it is known not to be locally connected: some of its small copies are joined to the body only through wiggly arcs that never settle down.
Multibrot sets replace the square by another power,
For a whole number the picture has lobes and the same symmetry as a regular polygon with sides. Slide the power slowly between whole numbers: is then only defined with a cut along the negative real axis, and you can watch a new lobe being born through that cut.
Julia sets use the same rule the other way around. Now is held fixed and the starting point is the pixel:
Every has its own Julia set, and the Mandelbrot set is the map of all of them: the Julia set is one connected piece exactly when lies in , and a dust of disconnected points when it does not. Drag the dot in the little map across the edge of and watch the set shatter. Near a point on the boundary, the Mandelbrot set and the Julia set of even look alike.
Newton's method finds a root of by following the tangent line down to zero again and again:
The equation has roots, evenly spaced on the unit circle, and each color marks the starting points that end up at one of them. Close to a root nothing surprising happens. In between, the regions cannot simply share a border: every boundary point touches all colors at once, which forces the endless chains of bulbs. The step size is 1 for the true method; pushing it toward 2 makes each step overshoot, and giving it an imaginary part (Twist) makes the steps spiral.
Self-similar carpets. Cut a square into a grid, throw away some of the cells, and do the same to every cell you kept, forever. If cells are kept each time, the result is made of copies of itself, each times smaller, and its dimension is the number that makes those two facts agree:
The Sierpinski carpet keeps 8 of 9 cells, so : more than a curve, less than a filled square. The triangle has , the Vicsek cross and Cantor dust . Change the rule in the little grid and the dimension updates as you click.
There is a neat way to say which points survive. Write the coordinates of a point in base . The first digits of and say which cell of the grid the point is in, the second digits say which cell inside that cell, and so on. The point belongs to the fractal exactly when none of those digit pairs names a removed cell.
How deep can it go? A graphics card works with numbers of about 7 digits, so a direct calculation falls apart after zooming in a few thousand times. The Mandelbrot set, Burning Ship and Tricorn go far past that with perturbation theory. The orbit of a single reference point is computed on the processor with 240 binary digits. Every pixel is a nearby point , and instead of its orbit the card tracks only the difference , which obeys
Everything in this formula is either tiny or already known, so 7 digits are enough again. When a pixel's orbit passes closer to zero than its difference is large, , the bookkeeping would lose accuracy, so the pixel restarts the reference orbit from its beginning and carries on. That one check removes the glitches this method is known for. The zoom stops near , where even the differences run out of exponent.
The self-similar fractals have no limit at all. The camera does not store a position as a number but as the list of grid cells it has passed through, one digit pair per level, plus its position inside the current cell. Zooming in appends a digit and zooming out removes one, so nothing ever becomes too small to represent.
What you are looking at. The fractal is first computed as raw numbers at twice the screen resolution, then colored in a second step, so palettes, relief and glow respond instantly without recomputing anything. Relief treats the smooth iteration count as a height and lights it from the upper left. Silk stripes averages the direction of each point's orbit, and the two orbit-trap displays record how close an orbit ever comes to the axes or to zero.
References: Mandelbrot, "The Fractal Geometry of Nature" (1982); Peitgen and Richter, "The Beauty of Fractals" (1986); Milnor, "Dynamics in One Complex Variable" (2006); Falconer, "Fractal Geometry" (2014); K. I. Martin, "SuperFractalThing Maths" (2013).