This was one of my High school Computer Science projects. For obvious reasons, I cant post the source code. But all you need to do is create an Imaginary number class which adds and multiplies complex numbers. Then, you multiply, and subtract these complex numbers. If this result is infinite bound, then you color the area black. You do this recursivly. This may help. https://en.wikipedia.org/wiki/Mandelbrot_set

mandibrot

Advertisements