DGS Studio

Fractals

Mandelbrot Set

Explore the Mandelbrot set with GPU zoom, pan, and orbit inspection.

mandelbrot() draws the set of complex c for which z₀ = 0, zₙ₊₁ = zₙ² + c stays bounded. The usual escape test stops when |z|² exceeds 4.

The default window is centered near −0.75 and covers the bulb from about −2.5 to 1 on the real axis. A point that has not escaped after the iteration limit is colored as a member of the approximation. It is not a proof of membership. Deep zoom uses the same rule at higher pixel cost.

Equation

mandelbrot()

What repeats

These fractals are produced by a rule that repeats. The line fractals replace each segment with a smaller copy according to a named curve and an iteration count. The Mandelbrot and Julia sets repeat the quadratic map z → z² + c and color a point by how quickly it escapes.

More iterations add detail, and they also add work. Escape pictures are finite-resolution approximations: a point that has not escaped yet is not a proof that it never will. Zooming the Mandelbrot or Julia view is done in the browser after the example has opened.

Reading the input

Try a change

Generate Graph selects the fractal viewer. Zooming and iteration changes happen in the browser after the set is open. The equation itself stays mandelbrot() or julia().

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples