This simple project was done to learn more about using the Turtle graphics class in Python. When running, the turtle places dots in different colors and forms the fractal known as the Sierpiński triangle.
Taken from the Sierpiński triangle Wikipedia article
- Take three points in a plane to form a triangle.
- Randomly select any point inside the triangle and consider that your current position.
- Randomly select any one of the three vertex points.
- Move half the distance from your current position to the selected vertex.
- Plot the current position.
- Repeat from step 3.