Creates the Sierpinski triangle, using a very simple algorithm. Firs, you choose the number of iterations by the help of the slider and the positions of the corner (you click on one corner, move the mouse to the position and click again on the corner). Then press space. The variable "num" shows the chosen corner (of the algorithm) and "current" shows the number of iterations that are already done.
Comments
You need to be logged in to post comments
Add a Comment
you should allow us to type in a number
Good job!