Wikijunior:Raspberry Pi/Raspberry Pi Turtle Stars

Turtle is a programming language that is used to draw artwork using a turtle and a series of commands. We are using the Python module which allows you to draw pictures using Turtle commands.

Draw a star
First we're going to write a program to draw a star:

Now change the program so that it uses a function:

Now change the function to draw different size stars:

Now, change the function so that we can draw stars of different sizes and colours:

Have fun creating many stars of various sizes and colours!

Turtle API
This is a full list of the functions provided by the Turtle Python module: https://docs.python.org/3/library/turtle.html

Move and draw
|   |   |    |    |    |   |    |

Tell Turtle's state
|

Drawing state
|  |    |   |    |

Visibility
|   |   v

Appearance
|

Using events
|

Special Turtle methods
|

Window control
|   |

Using screen events
|

Settings and special methods
|