Left click on canvas to zoom in, right click to zoom out
The Mandelbrot set is the set of complex numbers \(c\) for which the iterative function \(f(x) = x^2 + c\) does not diverge, for \(x\) starting at \(0\).
The Julia set is the set of complex numbers \(x\) for which the iterative function \(f(x) = x^2 + c\) does not diverge when initialized with \(x\), given a complex number \(c\) (which you can set with the slider below). Each pixel represents a point in the complex plane, and black points are in the set. This program uses shaders executed on the GPU to parallize the algorithm. With this method the set renders very quickly, and can be interacted with in real time, making for a fun web toy.The algorithm used is the classic Escape Time Algorithm. The color of a pixel is determined by the number of iterations the complex number associated with that pixel takes to diverge to infinity. Clearly we cannot actually diverge the value to infinity, so we determine whether it will or not by checking if the iterated value increases to a certain value in a certain number of iterations. That number of iterations can be changed with the slider below. A higher value will make for a more detailed fractal but is more computationally intensive.
Real part:
Imaginary part:
\(c =\) 0\( + \)0\(i\)
+ i
Max iterations: 75 (escape time algorithm, higher value may cause lag)