Draws a Sierpinski Triangle using a recursive algorithm.
This project was created during my university studies at ANU in 2019 and has been transferred from the ANU GitLab server.
Read the technical report »
Table of Contents
Using the functional programming language Haskell I created a program that draws a Sierpinski Triangle using a recursive algorithm. Find the core algorithm in src/Turtle.hs. To find out how the algorithm has been implemented, read the report.
- To run requires the Global Haskell Compiler and Cabal: https://www.haskell.org/platform/
- To develop use IntelliJ IDEA
- Clone the repo
git clone https://github.com/Tim-W-James/Sierpinski-Triangle.git
- Navigate into the root directory and run
cabal build cabal run
- Follow the local host link to a browser
Action | Effect |
---|---|
T (key) |
Draw simple triangle |
P (key) |
Draw polygon |
S (key) |
Draw Sierpinski triangle |
C (key) |
Draw 'COMP1100' logo |
Email: [email protected]
Project Link: https://github.com/Tim-W-James/Sierpinski-Triangle
- Australian National University for project skeleton and CodeWorld API implementation