Community resourceWorksheet
TUR-03 Colourful Canvas — named Turtle
Part 3 of 6 · Python Turtle (named Turtle)
Explore colour and pen controls with a named Turtle while building expressive drawings.
Students will:
- change pen and fill colours
- control pen width and drawing state
- combine repetition with visual choices
Inside: guided examples, knowledge checks and colourful coding tasks.
Series: Python Turtle (named Turtle), part 3 of 6.
Shared by Coding PathwayVerified teacher
- 18 cells
- About 45 minutes
- CC BY-SA 4.0
- Shared 16 Sept 2026
Preview
The whole resource, exactly as a class sees it. Answers and marking are held back.
Colourful Canvas
In this lesson, you will add colour, fill shapes and choose where they appear on the canvas. By the end, you will combine several shapes to make a small picture.
Pen colour and fill colour
artist.pencolor("navy") changes the colour of the outline. artist.fillcolor("gold") chooses the colour that will go inside a closed shape.
Colour names are text, so they need quotation marks. You can also store a colour name in a variable:
colour = "orange"
artist.fillcolor(colour)
A program stores "orange" in colour and then uses artist.fillcolor(colour). What happens if colour changes to "purple"?
- AThe shape becomes larger.
- BThe shape fills purple.
- CThe Turtle turns purple but the fill stays orange.
- DThe for loop repeats more times.
How a fill works
Use artist.begin_fill() before drawing the boundary. Draw every side so the shape closes. Then use artist.end_fill() to add the chosen colour.
Run the example and notice where the fill instructions appear before and after the for loop.
import turtle
artist = turtle.Turtle()
artist.speed(4)
side_length = 80
colour = "orange"
artist.pencolor("dark red")
artist.fillcolor(colour)
artist.begin_fill()
for count in range(4):
artist.forward(side_length)
artist.right(90)
artist.end_fill()Put the fill stages in order.
gap 1
# draw a complete closed shape
gap 2- artist.begin_fill()
- artist.end_fill()
- artist.penup()
- artist.goto(0, 0)
Why should the Turtle finish every side before ending the fill?
- AThe Turtle must return to the centre.
- BEvery filled shape must have four sides.
- CThe pen must be lifted before every turn.
- DThe shape needs a closed boundary.
Change it, then add another
Change the first shape's size and colours. Then create variables called second_size and second_colour. Move to a new position and use those variables to draw a second filled shape with a for loop.
How do I move without a joining line?
Use the safe pattern in this order:
artist.penup()
artist.goto(120, 40)
artist.pendown()
import turtle
artist = turtle.Turtle()
artist.speed(0)
side_length = 80
colour = "gold"
artist.fillcolor(colour)
artist.begin_fill()
for count in range(4):
artist.forward(side_length)
artist.right(90)
artist.end_fill()
artist.penup()
artist.goto(120, 40)
artist.pendown()Positions on the canvas
The centre of the canvas is (0, 0). A position has two numbers: (x, y).
xmoves left or right. Negative is left; positive is right.ymoves down or up. Negative is down; positive is up.
Use artist.penup() before artist.goto(x, y) if you do not want a joining line. Put the pen down again before drawing.
The Turtle is at (0, 0). Which coordinate is to the left and above it?
- A(-120, 60)
- B(120, 60)
- C(-120, -60)
- D(120, -60)
Complete the safe movement pattern.
gap 1
gap 2
gap 3- artist.penup()
- artist.goto(-120, 60)
- artist.pendown()
- artist.begin_fill()
- artist.right(90)
Make a mini-picture
Create a picture from at least three closed shapes. Use a for loop for each regular shape, at least two fill colours and artist.goto(x, y) to place shapes apart.
The code below sets up a night sky and provides two variables. It does not draw the first shape for you. Use the earlier example and your successful second shape when you need a reminder.
Need a picture idea?
Try one of these:
- a robot face made from squares and rectangles;
- a small town made from houses and windows;
- a pattern of coloured triangles, squares and hexagons.
Keep the first idea simple enough to finish.
A shape will not fill
Check that artist.begin_fill() comes before the for loop, artist.end_fill() comes after it, and the for loop closes every side.
import turtle
canvas = turtle.Screen()
canvas.bgcolor("midnight blue")
artist = turtle.Turtle()
artist.speed(0)
shape_size = 80
shape_colour = "gold"If two separate shapes have an unwanted line between them, which three commands would you check or add?
Name the commands in order.
Students type their answer here.
Core check
Your mini-picture meets the core goal when it has:
- three closed shapes;
- a
forloop; - at least two fill colours;
- safe movement using artist.penup(), artist.goto(x, y) and artist.pendown().
Optional picture challenge
Improve the mini-picture in the same code cell. Choose one challenge:
- store the positions of two shapes in variables;
- use a
forloop to add a repeated pattern of small shapes; - change the canvas background and choose colours that remain easy to see;
- build one object from two different regular shapes.
Complete the core check first. A clear, working picture is more important than adding every challenge.
Which part of your mini-picture will you reuse or improve in the scene project?
Name one useful shape or technique.
Students type their answer here.