Skip to content

ZeTRoY/fractol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fract'ol

					A 42 School Project

Description

So what is this project about?

What is a fractal?

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.  

Here's an example of natural fractal - the romanesco cabbage:

Picture

This project’s goal is to create a small fractal exploration program.

To compile my project run:

make

After that you should use:

./fractol

to see the command list. Also you can open up to three windows with different fractals!

Picture

My program can zoom in and zoom out with mouse scroll to/from your mouse point. Zooming increases maximum quantity of iterations, also you can do it just by pressing '+' button.

Here's what it looks like with:

./fractol mandelbrot

Picture

You can press 'H' to see different help options like:

to move use 'W' 'A' 'S' and 'D'
to increase/deacrease maximum quantity of iterations use '+'/'-'
to use your mouse for changing fractal's form press 'Space'
	(the last one works only with Julia set)

You can change color palette by pressing apropriate button:

'Z' for black'n'white color
'X' for color with binary decomposition
'C' for red color with gradient
'V' for colorful representation of fractal
'B' for psychodelic color or some sort of it :)
'N' for red color width gradient (using logarithm formula)
'M' for an interesting color palette (zoom in to see it better :) )

Picture

Also you can change fractals in your window by pressing:

'1' for Mandelbrot
'2' for Julia
'3' for Mandelbar
'4' for heart (I named it Heartbrot)
'5' for Dualbrot
'6' for so called "Great axe"
'7' for Pentabrot
'8' for Eggs (my own fractal, to see it, use 'V' or 'B' button)
'9' for Burning ship
'0' for Penta burning ship (named it Pentaburn)
'1'(on keypad) for heart on Julia set
'2'(on keyboard) for Pentajulia

Picture

And mandelbrot fractal without help info is:

Picture

To normalize your fractal use 'Backspace' button (resets to default settings).

Now here are some examples of my fractals:

Picture Picture Picture

About

A Fract'ol project of school 42.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published