This project is about creating graphically beautiful fractals!
This is a small fractal exploration program called "fract'ol". It allows you to display and interact with various types of fractals, including the Julia set and the Mandelbrot set. The program utilizes the MLX42 library for graphical rendering.
- MLX42 library
- C compiler
- Standard C libraries (open, close, read, write, malloc, free, perror, strerror, exit)
- Math library (-lm compiler option)
- Clone the repository or download the source code files.
- Compile the program using the provided Makefile by simply running:
$ make
To embark on a fractal adventure, run the program with the following command:
$ ./fractol mandelbrot
or
$ ./fractol julia nbr nbr
nbr
: lets you play around with additional options for the Julia set..- use the arrow keys to move the fractal around!
- you can adjust the number of iterations with the + and - keys (try it, it's fun!)
- when you choose the julia set right click hold with your mouse and move around for some extra fractal magic!
- Display the Julia set and the Mandelbrot set.
- Zoom in and out using the mouse wheel, allowing infinite zooming within the limits of the computer.
- Create different Julia sets by passing different parameters to the program.
- Support for additional parameters as rendering options.
- Changing colors with a simple press on a key
- Adding different fractals
- Zoom on mouse position
- Gradient flow between iterations
- stabilizing framerate with mlx