Dig Trig

Mandelbrot Set

Menu

Menu

The Mandelbrot Set is a mathematical set of points in the complex plane, the boundary of which forms a fractal. When computed and graphed on the complex plane the Mandelbrot set is seen to have an elaborate boundary which, being a fractal, does not simplify at any given magnification. The Mandelbrot set has become popular outside mathematics both for its aesthetic appeal and for being a complicated structure arising from a simple definition, and is one of the best-known examples of mathematical visualization. Many mathematicians, including Mandelbrot, communicated this area of mathematics to the public. In honor of the passing of Benoit Mandelbrot, I wanted to create a demo that rendered his famous fractal.

Each pixel is evaluated to see if it lies within the set. This can get very time consuming when the area to the left has 368,000 pixels. In order to speed things up so you can see the fractal faster, I make 4 different passes. Each pass is about 2 times as accurate as the previous, showing higher and higher resolution of the fractal. The first pass has a resolution of 10:1 ration. The final pass evaluates all 368,000 pixels at a 1:1 pixel ratio.

Use the controls to zoom in and zoom out, as well as reset back to the original settings. You can also click anywhere on the visualization to zoom in centered at that spot. You can save a PNG of the rendered image by clicking on the camera below and then right-click and save as the thumbnail.

Rendering is done with HTML5 Canvas object, not Flash. I highly recommend using Chrome or Safari. Firefox will work, but is sluggish. I do not support IE.

Using a x2 zoom level per zoom, zoom in 50 times. That's 2^50... or a zoom level of x1,125,899,906,842,624. At around 46 times you can start to see Javascript's floating point limit and by around 56 times you are lost within your computer's absolute computational limit. You just pushed your computer to the very edge and it broke down. I don't know about you, but it makes me feel pretty badass. :)

x2

or click above to zoom-in on a specific spot
IE is not supported.

Get a real browser.

Get a real browser.