Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.22 KB

README.md

File metadata and controls

36 lines (29 loc) · 1.22 KB

Mandelbrot Viewer

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.

Configuration

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.

Features

  • Render the fractal with colors
  • Pan, zoom in and out

Compiling and Running

make
./main.out

Required dependencies: glfw3

Double and single precision

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

Screenshots

Screenshot of program when it starts up Screenshot of zoomed in Mandelbrot fractal Screenshot of zoomed in Mandelbrot fractal Screenshot of zoomed in Mandelbrot fractal