Skip to content

acsor/Sierpinski-Triangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sierpinski triangle

A C Sierpinski triangle implementation based on Cairo 2D graphical library.

Installation

As a first step, ensure Cairo is installed in your environment: Cairo | Download.

Once this dependency is done, run make serpinskit in your console to build the executable.

Execution

serpinskit: <Depth level>

The first argument to the executable is the number of iterations to carry out on the initial canvas.

Image .png files are saved as Serpinski[0-9]+.png in the same directory as the executable, unless the -o option is specified.

As an example ./sierpinski 8 will yield:

"Eight levels of the Sierpinski process"

About

A C Cairo implementation of the Sierpinski Triangle.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published