Skip to content

bjohnsonfl/Mandelbrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandelbrot Set Explorer

This C++ program explores the recursive function Zn+1 = (Zn)^2 + C where Zn is the complex number a + bi.

This program uses the basic escape algorithm described here https://en.wikipedia.org/wiki/Mandelbrot_set#Computer_drawings

The Mandelbrot set is the set of complex numbers C that prevents the function above from diverging. When numbers outside the set diverge, they do at varying points in time which is represented by colors in the pictures and videos you see online. The black regions are the Mandelbrot set, the color regions are not.

How to use this repository

This program uses sfml to render a window to display the plots. You can download it here https://www.sfml-dev.org/index.php. You will then have to compile the code. A makefile will be up later.

Left click to zoom in on that area. Right click to zoom directly out. Center click (wheel click) to zoom directly to the top level view. Press left up right and down arrows to move the screen in those directions. Press the letter T to zoom to the "Top" as well.

Besides pressing Esc to escape, no key or mouse button will work until the complete render of the plot is complete.

Future work

Panning, mouse features, and other UI related fixes. Multi threading and SIMD optimizations are also intereting to look into.

Enjoy!

Releases

No releases published

Packages

No packages published

Languages