Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 828 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 828 Bytes

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"