a2wd | code & design

Single post

The Mandelbrot Fractal


I have just finished CS50x, Harvard’s online computer science offering. For my final project, I implemented a zoomable rendering of the Mandelbrot fractal, in Javascript, using the HTML5 canvas element.

The github repository is accessible at github.com/a2wd/mandelbrot

A live demonstration can be found at the attached github page, a2wd.github.io/mandelbrot



Fractals are fascinating and made for interesting research. The following are pages of note:

A general primer on fractals can be found at:


In particular, I thought to try the Mandelbrot set which is a fairly simple set of complex numbers


To plot the Mandelbrot set, we find the components of the imaginary numbers and mark how quickly the series diverges to infinity for any particular number along the complex plane:



The following animated gif is a screencast of the fractal engine in action


10 Aug 2014CS50 / Fractals / javascript / Mandelbrot

  • Recent Posts

  • Archives