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
mandelbrot()— This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
Try a change
- Lower the iteration count by 2 and generate. You should recognize the same rule with fewer replacements.
- Raise the count by 1 only. Each added iteration multiplies the number of segments, so large jumps get slow.
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().