This project has been created as part of the 42 curriculum by mtran.
The purpose of this project is to code a mathematical fractal exploration program using the MinilibX graphical library.
Fract-ol is an interactive graphical program that calculates and renders fractals in real-time. It allows users to explore the infinite complexities of the Mandelbrot and Julia sets. The program handles window management, events, and pixel-by-pixel rendering to translate mathematical equations into visual beauty.
- Real-time rendering of the Mandelbrot and Julia sets
- Customizable starting parameters for the Julia set via command-line arguments
- Smooth navigation: zoom in/out with the mouse wheel and pan the camera with arrow keys
- Custom string-to-float parser (
ft_atof) for precise mathematical seeds - Clean memory management (0 memory leaks) and smooth window closing
makeTo explore the Mandelbrot set:
./fractol MandelbrotTo explore the BurningShip set:
./fractol BurningShip
### Julia
The Julia set requires a constant complex number (a real part and an imaginary part) as a mathematical seed.
```bash
./fractol Julia <real_part> <imaginary_part>Example:
./fractol Julia -0.8 0.156
./fractol Julia 0.0005487 0.7551111
./fractol Julia -0.4 0.6
./fractol Julia 0.285 0.01
./fractol Julia -0.835 -0.2321
./fractol Julia 0.285 0
The rendering engine is based on the equation
- Mandelbrot set : https://en.wikipedia.org/wiki/Mandelbrot_set
- Julia set : https://en.wikipedia.org/wiki/Julia_set
Additionally, I used AI tools as an educational assistant to help debug complex issues and refine logic during the development process.
Thanks to my fellow 42 students for their help, code reviews and support throughout this project. A special thanks to tgomez-f for the invaluable help with debugging memory leaks! Peer-learning and collaboration are what make 42 great.