fract'ol is a project from the 42 cursus that involves creating a program to visualize various fractals, such as the Mandelbrot set, the Julia set, and others. The main objective is to learn more about complex numbers, fractal mathematics, and graphical rendering using the MLX42 library.
To compile and run the project, you will need:
- A Unix operating system (Linux or macOS).
- gcc or any C compiler.
- Make.
- MLX42 library.
- GLFW library.
Clone the project repository and navigate to the main directory:
git clone https://github.com/PaLucena/fract-ol.git
cd fract-ol
Compile the project using the included Makefile:
make
This will generate the fractol
executable in the current directory.
To start the fractal visualizer, run the following command:
./fractol <fractal_name>
Where <fractal_name>
can be one of the following:
mandelbrot
julia
burningship
Example:
./fractol mandelbrot
The fract'ol program supports various features to enhance the fractal visualization experience:
- Zoom in and out with the mouse scroll.
- Move the view using the arrow keys.
- Change the color scheme with the numeric keys.
- Switch between different fractals.
The project is organized into the following files and directories:
src/
: Contains the source code of the fractal visualizer.include/
: Contains the header files.Makefile
: Build script to generate the executable.README.md
: Project documentation.
This project is licensed under the MIT License. See the LICENSE
file for more details.