/Sierpinski-Triangle-Recursion

A program that recursively draws Sierpinski triangles.

Primary LanguagePython

Project Title

A recursive program that draws a Sierpinski triangle of selected recursion depth and side length. This program relies upon John M. Zelle's graphics.py library library.

Prerequisites

graphics.py library

Getting Started

Download the program, navigate to the proper directory, run as python3.

##Command Line arguments

'''python3 Sierpinski_triangle_recursion.py [side_length(px) ] [Recursion Depth/levels (n)]'''

Using side length of 300 and depth of 3 is a good first test:

'''python3 Sierpinski_triangle_recursion.py 300 3'''

![alt text](https://github.com/hansonc2/Sierpinski-Triangle-Recursion/Example\ (side length = 300, depth = 3).png)

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details