Fractal Tribute — Fractal Geometry in Art | fractal-tribute.com
independent recordfractal-tribute.comindependent reference record
Fractal Tribute — Fractal Geometry in Art | fractal-tribute.com

Escape-time colouring explained

The colour of a point is not stored anywhere in the Mandelbrot set; it is computed on the fly from the number of iterations the orbit survives before escaping.

Escape radius 2 is the threshold: once |z| passes it, the orbit is guaranteed to diverge and the point is outside the set.

Iteration caps of 100–1000 are typical; raising the cap adds detail near the boundary but costs time linearly.

How does a program decide which colour to draw for a point of the Mandelbrot set?

It counts iterations until the orbit escapes the radius-2 disk, then maps that count to a colour.

For each pixel the program converts screen coordinates to a complex number c and starts the orbit at z = 0. It applies z(n+1) = z(n)^2 + c repeatedly. The moment |z| exceeds 2, the point cannot be in the Mandelbrot set and the loop stops. The number of completed iterations is the escape count.

The escape count is then fed to a palette. A common scheme is a linear or cyclic gradient where count 0 is one hue, count 50 another, and counts beyond the cap are drawn in a single interior colour. Because the count grows without bound near the boundary, the palette is usually cyclic so that colour bands appear as contour-like rings.

If the orbit never escapes within the chosen cap — say 100, 500 or 1000 iterations — the point is declared inside the set and painted with the interior colour. The cap is a rendering choice, not a property of the set: raising it reveals more structure near the boundary but costs time roughly in proportion to the cap.

  • Start with z = 0 and the pixel's c.
  • Iterate z ← z² + c.
  • Stop when |z| > 2 or the iteration cap is reached.
  • Map the iteration count to a colour; cap reached means interior colour.

What does the iteration count actually measure?

It measures how long the orbit stays bounded before it provably diverges.

The Mandelbrot set is the set of c for which the orbit of 0 stays bounded forever. In practice a program cannot test 'forever', so it uses the escape radius as a sufficient condition for divergence: once |z| > 2 the orbit is guaranteed to run to infinity.

The escape count is therefore a lower bound on the true escape time. Points with low counts are far outside the set; points with counts near the cap sit close to the boundary. This is why the boundary is where the colour bands crowd together.

Interior colouring by distance estimation needs the derivative of the iteration along with z, which gives a smooth estimate of the distance to the boundary instead of a flat interior fill.

  • Low count: point is well outside the set.
  • High count near the cap: point is near the boundary.
  • Cap reached: point is treated as inside for this render.
The colour of a point is not stored in the set; it is computed from how long the orbit survives before it escapes.
Escape radius 2 is the smallest value that guarantees divergence for the quadratic map.

Dossier

How is a fractal dimension read from a self-similar figure?

Count the copies and the scale factor, then take D = log(N)/log(s).

A self-similar figure made of N copies of itself, each scaled by 1/s, has similarity dimension D = log(N)/log(s). This is exact for figures built by an explicit replacement rule.

The Sierpinski triangle is three copies scaled by one half, so D = log 3 / log 2 = 1.585. The Koch snowflake is four copies scaled by one third, so D = log 4 / log 3 = 1.262. Both values sit between 1 and 2, which matches the intuition that these curves are more than lines but less than filled areas.

Box-counting dimension gives the same numbers for these examples and extends to figures that are not exactly self-similar, such as the boundary of the Mandelbrot set.

  • Sierpinski triangle: N = 3, s = 2, D = 1.585.
  • Koch snowflake: N = 4, s = 3, D = 1.262.
  • Formula: D = log(N) / log(s).

Why does a deep zoom lose precision?

Because the number of distinguishable values in a floating-point format is finite, and zooming pushes neighbouring pixels closer than that spacing.

Single-precision floats run out of detail near a zoom of 10^5; double precision carries to about 10^13. Beyond those scales adjacent pixels can map to the same floating-point value, so the image turns blocky or repeats.

The fix is to use a wider number type or an arbitrary-precision library for the iteration. The trade-off is speed: each extra digit of precision costs more per iteration, and the iteration cap usually has to rise as well to keep the boundary sharp.

The escape-time rule itself does not change with precision; only the arithmetic used to represent c and z does.

  • Single precision: detail runs out near 10^5.
  • Double precision: detail carries to about 10^13.
  • Wider types extend the range at higher cost per iteration.

How do the Mandelbrot and Julia pictures relate?

The Mandelbrot set varies c across the plane and keeps the starting z fixed; a Julia set fixes c and varies the starting z.

In the Mandelbrot iteration z(n+1) = z(n)^2 + c, the constant c is the pixel coordinate and the orbit always starts at z = 0. In a Julia set the constant c is fixed for the whole image and the pixel coordinate becomes the starting z.

For a given c, the Julia set shows the same dynamics that the point c represents inside the Mandelbrot picture. Values of c inside the Mandelbrot set give connected Julia sets; values outside give disconnected ones.

Both families use the same escape radius 2 and the same iteration cap, so a renderer can share the loop and swap only what is held fixed.

  • Mandelbrot: c varies, z starts at 0.
  • Julia: c fixed, z starts at the pixel.
  • Same escape rule and cap apply to both.

Key quantities

Key quantities for escape-time rendering and dimension arithmetic
QuantityValueUnit or formWhere it applies
Escape radius2absolute value of zMandelbrot and Julia iteration
Typical iteration cap100–1000iterationsbefore declaring a point inside
Sierpinski triangle dimension1.585log(3)/log(2)exact self-similar figure
Koch snowflake dimension1.262log(4)/log(3)exact self-similar figure
Single-precision zoom limit10^5zoom factorbefore detail is lost
Double-precision zoom limit10^13zoom factorbefore detail is lost
Key quantities for escape-time rendering and dimension arithmetic

Figures

Schematic, chart, diagram and table used across the guide.

Escape radiusEscape countIteration capSimilarity dimension
The key terms of this guide, drawn to one scale

Sources

Sources are standard mathematical definitions and widely published precision limits; no commercial or proprietary material is used.