This program will generate images of the Mandelbrot set and other arbitrary polynomials.
To use the program:
- Install xquartz. If you're on MacOS, you can install it with homebrew via
brew install xquartz
. Otherwise, you can install it from their website. - The version of OCaml I used was
4.12.0
, so ensure you have an environment with that version. - Install OCaml's graphics module with
opam install graphics
. - Run
make all
. - Run
./main.byte
.
To zoom into an area, just click on the screen once and then again to denote the area. Press q
to quit or e
to enhance the picture by increasing the number of iterations. You can adjust the resolution, coloring, function to be used for fractal generation, and complex region to calculate. All configuration settings are in config.ml
.
Some pictures generated with the software: