A small program in c language to visualize Mandelbrot and Julia set fractals
Fractol is a small program written in c for visualizing fractals.
There are two set of fractals you can visualize with this program:
You can download these files and compile the program using the Makefile
provided and make
.
Go to the directory of the program fract-ol/
in your shell, and execute:
> cd ~/path/to/fract-ol
> make
In the same directory where you compiled the program <<fract-ol/
>> you should be able to find the excutable fractol
.
To launch the program use:
> ./fractol mandelbrot
or
> ./fractol julia -0.7269 -0.1889
This is just one example of a Julia set but you can explore other Julia sets.
UP
,DOWN
,LEFT
,RIGHT
arrow key to move the fractal.
and,
to change more or less resolution*. Because the color is also linked with the resolution you will see how the colors change.e
to change the set of colors.
WARNING:This will increase the amount of iterations to render the fractals so you can go as far as your maching can go
This is program has being created as an assignment for 42 Barcelona school, so it has not being optimized for performance.
This code has being heavily inspired in the Oceano Tutorial : fractol: render beautiful fractals in C (mandelbrot and julia set)
Also a big thanks to CODAM College and the MLX42 library.