Interactive HTML5 Mandelbrot Set

Use the arrow keys     to move around,
W / Q to zoom In and Out.

For countless hours of fractal fun, I hope you're using the Chrome browser. Otherwise you are welcome to come on the GitHub project repository page and suggest optimizations that will make the code run faster on your favorite browser.

The Mandelbrot set is a mathematical set of points whose boundary is a distinctive and easily recognizable two-dimensional fractal shape. The set is closely related to Julia sets (which include similarly complex shapes), and is named after the mathematician Benoit Mandelbrot, who studied and popularized it.

Mandelbrot set images are made by sampling complex numbers and determining for each whether the result tends towards infinity when a particular mathematical operation is iterated on it. Treating the real and imaginary parts of each number as image coordinates, pixels are colored according to how rapidly the sequence diverges, if at all.

More precisely, the Mandelbrot set is the set of values of c in the complex plane for which the orbit of 0 under iteration of the complex quadratic polynomial Zn+1 = Zn^2 + C remains bounded. That is, a complex number c is part of the Mandelbrot set if, when starting with z0 = 0 and applying the iteration repeatedly, the absolute value of zn remains bounded however large n gets.

From Wikipedia, the free encyclopedia

Leeron Shalev on GitHub   |   Project Repository Page