This repository contains my submission to the Fract-ol project for 42 School. It provides a (single-threaded) fractal visualizer with ok performance.
The fractol program provides visualization of the following fractals:
- Mandelbrot Set
- Julia Set (parametrized)
- Mandelbar Set
To use the fractol program, follow these steps:
- Clone this repository to your local machine.
- Navigate to the repository's root directory.
- Run
make
to compile the library.
A compiled binary named fractol
will be generated.
$ ./fractol --help
Usage: ./fractol FRACTAL [FRACTAL_OPTIONS]
Available fractals are: Mandelbrot, Julia, Mandelbar
Some fractals require options to work:
Julia Receives a complex number in the following form: 0.0+0.0i
You can control the fractol program by using the following keybindings:
- Navigate the fractal using
WASD
or arrow keys. - Zoom in or out from the fractal using the mouse wheel.
- Restore the viewport using the
R
key. Q
orESQ
to exit the program.