The Fract-ol project is an introduction to computer graphics using the MiniLibX library. It allows you to explore and render beautiful fractals interactively, such as the Mandelbrot set and the Julia set. The project combines math, pixel manipulation, and event handling to create a responsive and visually appealing fractal viewer. 🎨🖥️✨
-
Renders different fractals:
- Mandelbrot set
- Julia set
-
Zoom in/out with the mouse wheel for infinite detail.
-
Built using MiniLibX for lightweight graphics handling.
-
Program Name:
fractol -
Usage:
./fractol mandelbrot ./fractol julia ./fractol julia <real_part> <imaginary_part>
Example:
./fractol julia -0.8 0.156
- Mouse Scroll: Zoom in/out on fractal.
-
Clone the repository:
git clone https://github.com/MohammadHusssein/42-fractol.git cd 42-fractol -
Compile the program:
make
-
Run with a fractal name:
./fractol mandelbrot ./fractol julia
./fractol mandelbrot👉 Opens an interactive Mandelbrot set window. Zoom to explore infinite detail.
./fractol julia -0.70176 -0.3842👉 Opens a Julia set with given complex parameters.
Try different inputs and fractals:
./fractol mandelbrot./fractol julia 0.285 0.01./fractol julia -0.8 0.156
This project is licensed under the MIT License. Feel free to use, modify, and share with proper attribution. 📜🔓✨