Skip to content

Gugor/42_fract-ol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fractol

A small program in c language to visualize Mandelbrot and Julia set fractals


Description

Fractol is a small program written in c for visualizing fractals.

There are two set of fractals you can visualize with this program:


Installation (UNIX)

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

How to execute fract-ol

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.

Controls

  • UP,DOWN,LEFT,RIGHTarrow 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

Disclaimer

This is program has being created as an assignment for 42 Barcelona school, so it has not being optimized for performance.

Thanks to

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.

About

Small fractal explorating program in c

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published