Explore the infinite beauty of algorithmic complexity through generative art. Each piece represents a unique mathematical universe visualized through code.
Mandelbrot Set - Zoom 2.3e6
Julia Set - Complex c parameter 0.285
Sierpinski Triangle - 9th iteration
Move your cursor around the canvas to explore different fractal paths.
Iterative complex function: Zn+1 = Zn2 + C
function
mandelbrot
(c
)let
z
= 0for
let
i
= 0; i < MAX_ITER
; i++)if
(Math.abs(z
) > 2) return
iz
= z
*z
+ c
MAX_ITER
;
Similar to Mandelbrot but with fixed constant C for the entire set.
const
C
= -0.7 + 0.270ifunction
julia
(z
)for
(let
i=0; i<MAX_ITER
; i++)z
= z
2 + C
if
(|z
| > 2) return
ireturn
MAX_ITER
;