/turtle

Primary LanguagePython

Turtle

The tool we will use for our illustrations is Python’s turtle graphics module called turtle. The turtle module is standard with all versions of Python and is very easy to use. The metaphor is quite simple. You can create a turtle and the turtle can move forward, backward, turn left, turn right, etc. The turtle can have its tail up or down. When the turtle’s tail is down and the turtle moves it draws a line as it moves. To increase the artistic value of the turtle you can change the width of the tail as well as the color of the ink the tail is dipped in.

Spiral

Python Turtle Graphics 3_9_2023 12_03_52 PM

Tree

Python Turtle Graphics 3_10_2023 10_01_36 AM

Sierpinksi Triangle

Python Turtle Graphics 3_10_2023 10_02_44 AM