Mandelbrot Set
The Mandelbrot set comes from repeatedly squaring a complex number and adding a constant. Click the canvas to zoom into the fractal boundary.
Click the image to zoom into the boundary. More iterations reveal finer detail but take longer to render. The black region is inside the set; colours show escape speed.
What you are seeing
Each pixel is a complex number c. Start with z = 0 and repeat z ← z² + c.
If the value escapes to infinity, the point is outside the set. If it stays bounded, it is inside.
The colors show how quickly each point escapes. Zooming reveals self-similar detail at every scale.
Why it matters
Fractals connect complex numbers, dynamical systems, and computer graphics. The Mandelbrot set is a visual proof that simple rules can generate infinite complexity.
Complexity & details
Rendering cost is pixels × iterations. Higher iteration counts reveal more boundary detail but cost more time.
Frequently asked questions
Why does zooming slow down?+
Boundary regions need more iterations before escaping, and deep zooms require higher precision arithmetic.
Is the Mandelbrot set connected?+
Yes. The set is connected; the colorful bulbs attached to the main cardioid are part of the same structure.