1.3 How to use the pen

Topic

1.3 How to use the pen

Topic Progress:

When you first begin moving the Turtle, you will notice it leaves behind a line, which shows you where the Turtle has been. This is why Turtle is used to draw because it is used as a pen.

The pen, by default, will be down. This means that any movement you make initially will leave behind a line. We can change this by writing this in our code:

t.penup()

This will prevent any further movements of the turtle from drawing a line. Run the code below, then take the ‘#’ out and see what the difference is!

If you want to begin drawing again, use t.pendown() and the turtle will begin to make lines behind it.

We can also change the pen colour by using the command t.pencolor()

Note the American spelling of “color” instead of the British “colour”. Inside the brackets, you must type your desired colour, surrounded by quotation marks (“” or ‘’). Try this below, with red, blue, or green! 

@

Not recently active