A simple program written in C++ and OpenGL that renders the Mandelbrot Fractal. This is a rewrite of the older and slower mandelbrotVisualizer, which is written in Java.
You can now pass in a custom number of iterations by using the -i
flag:
./main.out -i 1000 # or --iterations
The default is 500 iterations.
- Render the fractal with colors
- Pan, zoom in and out
make
./main.out
Required dependencies: glfw3
I recently made a change that uses double precision instead of single precision. While this enables you to zoom further into the fractal, it causes the program to be slower. If you want to regain the performance, and you don't care about the zoom level, you can apply the patch in the patches directory using:
git apply patches/float.patch