Skip to content
/ 42SP-fractol Public template

Fractol is a 42 Project aimed at exploring fractals; mathematical sets that exhibit a repeating pattern displayed at every scale.

Notifications You must be signed in to change notification settings

SantanaC4/42SP-fractol

Repository files navigation

42SP-fractol

42-Badge

The term fractal was first used by mathematician Benoit Mandelbrot in 1974, he based it on the Latin word fractus, meaning "broken" or "fractured". A fractal is an abstract mathematical object, like a curve or a surface, which has a similar pattern whatever the scale.

Mandelbrot set

Julia set -0.835 -0.2321

Goals

This is the first project in which we use the graphical library miniLibX. This project also gives the opportunity to make use of the mathematical notion of complex numbers and to take a peek at the concept of optimization in computer graphics.

Mandatory

• The software should offer the Julia set and the Mandelbrot set.

• Mouse wheel zooms in and out.

• Use at least a few colors to show the depth of each fractal.

• A parameter is passed on the command line to define what type of fractal will be viewed. If no parameter is provided, or if the parameter is invalid, the program displays a list of available parameters and exits properly.

References

Fractol: Mandelbrot

https://www.youtube.com/watch?v=fAsaSkmbF5s&t=445s

Fractol: Julia

https://www.youtube.com/watch?v=6z7GQewK-Ks&t=24s

Colors

https://theses.liacs.nl/pdf/2018-2019-JonckheereLSde.pdf https://theses.liacs.nl/pdf/2018-2019-JonckheereLSde.pdf

Requirements

Minilibx

Install its dependencies:

sudo apt-get install gcc make xorg libxext-dev libbsd-dev

Clone minilibx repo:

$ git clone https://github.com/42Paris/minilibx-linux.git

Run the config tool:

./configure

For more details, check miniLibx repository Readme.

Usage

To compile the program, run:

$ make

Execute the software, providing the name of the fractal set and the seed, when necessary:

$ ./fractol julia -0.73 0.14

Avaliable sets:

mandelbrot
julia


About

Fractol is a 42 Project aimed at exploring fractals; mathematical sets that exhibit a repeating pattern displayed at every scale.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published