Julia set explorer (2D)

Pick c on the Mandelbrot map; the GPU draws the Julia set. Drag to pan, wheel to zoom, click to follow an orbit.

Switch to 3D

Presets

Playback

Constant c

Look

Layers

Model check

The science

What is modelled

For a complex constant c, iterate z → z² + c from every starting point z0 in the picture. If |z| never exceeds the escape radius the point belongs to the filled Julia set Kc (drawn dark); otherwise the number of steps before escaping gives the colour. The Julia set Jc is the boundary of Kc. The escape radius must be at least max(2, |c|); this page uses 256 so the smooth colouring is accurate.

Smooth colouring and the escape potential

Plain step counts give bands. The smooth value ν = n + 1 − log2(ln|zn| / ln R) removes them. The same data give the Green's function (escape potential) G(z) = lim ln|zn| / 2n, which is zero on Kc, positive outside and satisfies G(z²+c) = 2 G(z). The contour colouring mode draws curves of constant G; in the 3D twin G is the height of a landscape.

Connectedness and the Mandelbrot set

Fatou and Julia: Jc is connected exactly when the critical orbit of 0 stays bounded, i.e. when c lies in the Mandelbrot set M. For c outside M the Julia set is a Cantor dust of zero area. The map in the first graph is M; click it to choose c, and the page reports which case you are in.

GPU and CPU

The picture is computed in a fragment shader with 32-bit floats, so zooming stops being meaningful around a few thousand times; deeper needs arbitrary precision. A 32 x 32 test tile is also computed on the CPU in 64-bit arithmetic and compared with the shader (check 5). If WebGL is unavailable the page falls back to a coarse CPU rendering.

Honest simplifications

  • A finite iteration cap treats very slowly escaping points as members, so the filled set and the Mandelbrot area are slightly overestimated; raising the cap sharpens thin filaments.
  • The Mandelbrot map is drawn at low resolution with 120 iterations.
  • Colours carry no physical meaning.

Numerical checks on this page

c = 0 (unit disc, G = ln|z|); c = −2 (the Julia set is the segment [−2, 2]); connected versus dust through critical-orbit membership and filled area; the area of M against the published 1.5066; and the shader against the CPU.

Parameter plane (Mandelbrot set)
Orbits of the critical point and a picked point
Escape potential along the real axis
Escape-time histogram of the view