Julia Set
Drag the slider for the angle a to move the constant c around a circle and watch the Julia set of z² + c deform. Edit the equation yourself.
In 1918 Gaston Julia, aged 25, published a memoir on what happens when a function is applied to its own result again and again; it won the Grand Prix of the French Academy of Sciences. Three years earlier, a bullet had struck him in the face on the Western Front. A Julia set is the boundary between the starting points whose orbits under z \to z^2 + c stay bounded and those that escape to infinity: c is fixed, and the starting value z is the pixel. The set is in one piece (connected) or a dust of separate points according to whether c lies inside the Mandelbrot set, a theorem that Pierre Fatou and Julia proved in the 1910s.
Here c = 0.7885\,e^{ia} moves on a circle of radius 0.7885 , where e^{ia} = \cos a + i\sin a is the point at angle a on the circle of radius 1. The angle a plays from 0 to 2\pi . Each frame samples the square -1.8 \le x, y \le 1.8 with an iteration limit of 256. Outside the set, the color follows the escape speed through a repeating gradient of navy, blue, white, gold and black. Inside, each pixel shows how close its orbit comes to the two axes, and the orbits that pass near an axis draw a web of gold lines on dark brown: an orbit trap.
At a = 2.4 , c \approx -0.58 + 0.53i is outside the Mandelbrot set: the Julia set is a dust with spirals. Drag a to 1.75: c \approx -0.14 + 0.78i is inside, the set is in one piece, and the web of gold lines appears. Only about 15% of the circle lies inside the Mandelbrot set, in short arcs between a \approx 1.6 and a \approx 4.7 . Move a slowly across their ends, and notice the set pinch, break into dust and reconnect.
JavaScript is required to view the interactive plot.