Fract-ol generates beautiful fractals from the complex numbers of an iterative mathematical construct.
- Fractal
- Complex numbers
- Cuda
A fractal is a fragmented geometrical figure that infinitely repeats itself at smaller scales.
The Mandelbrot set is an example of a fractal in mathematics. It is named after Benoît Mandelbrot, a Polish-French-American mathematician.
The Mandelbrot set can be explained with the equation
| c
and z
are complex numbers.
c
is in the Mandelbrot set if the absolute value of $ z_n $ never becomes larger than a certain number no matter how large n
gets.
Depending on the iteration number at which c becomes larger than that value, a color can be chosen to visualize the Mandelbrot fractal.
- Mandalbrot set
- Julia set
- Extra fractal
- Zoom in/out
- Zoom in towards the mouse
- Implementing gpu version using cuda (extra)
# Install SDL2 and SDL2-images
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-image-dev
make
./fractol 1000 100 1
# For cuda version
Install CUDA toolkit then
cd cuda_mandelbrot
make