Community resourceWorkspace
1CP2-CT-6.WS3 Pen colour fill and circles
Part 3 of 6 · 1CP2-CT-6 · Turtle practical lessons
The third practical lesson, adding colour, fill and curves to the shapes students can already draw.
Students will:
- set pen colour and pen width
- fill a closed shape
- draw whole circles and arcs
- combine colour and fill in one drawing
- keep a program readable as it grows
A Workspace lesson: students write and run their own Python in the editor. About 60 minutes.
Series: 1CP2-CT-6 · Turtle practical lessons, part 3 of 6.
Shared by Coding PathwayVerified teacher
- 1 coding activity
- About 60 minutes
- CC BY-SA 4.0
- Shared 17 Aug 2026
Preview
The whole resource, exactly as a class sees it. Answers and marking are held back.
Pen style, colour, fill and circles
What you will build
You will create a coloured badge containing a filled polygon and circular detail. You will control outline colour, pen size, fill colour and the boundary that is filled.
By the end, you should be able to:
- use
pencolorandpensize; - fill a closed shape using
fillcolor,begin_fillandend_fill; - draw a circle or arc using
circle(radius, extent); - reposition without unwanted lines;
- test visual state systematically.
Before you begin
Pearson's programming subset uses separate methods for outline and fill:
artist.pencolor("navy")
artist.pensize(4)
artist.fillcolor("gold")
artist.begin_fill()
# draw one closed boundary
artist.end_fill()
Calling fillcolor does not fill an earlier shape. begin_fill must run before the closed boundary is drawn, and end_fill must run afterwards.
Stage 1: complete a filled rectangle
Complete draw_rectangle(width, height, colour) in the starter code.
- Set the fill colour from the parameter.
- Begin the fill.
- Repeat a width side and a height side twice.
- End the fill.
Test the procedure on its own before adding anything else.
Stage 2: add circular detail
Reposition the turtle with the pen up. Set a known heading and draw a circle with radius 35.
Remember: in standard mode the circle's centre lies radius units to the turtle's left. The turtle sits on the edge, not at the centre.
Then experiment with an arc:
artist.circle(50, 180)
The optional extent of 180 draws half a circle.
Stage 3: construct a badge
Combine at least:
- one filled closed shape;
- one complete circle;
- one arc or second circle;
- two outline colours or pen sizes;
- safe repositioning between separate parts.
Choose colours from Pearson's documented examples, such as blue, black, green, yellow, orange, red, pink, purple, navy, cyan, silver or gold.
Success criteria
- Outline and fill colour are controlled separately.
- Every intended fill has a matching
begin_fill()andend_fill()around a closed boundary. circleis used with a radius, and optionally an extent.- Pen size is changed purposefully.
- Repositioning does not create accidental lines.
- The canvas shows a coherent badge rather than disconnected experiments.
Debugging prompts
- Shape does not fill: inspect the order of fill calls and whether its boundary closes.
- Wrong colour: distinguish
pencolorfromfillcolor. - Circle appears offset: remember that the turtle begins on the circumference.
- Diagonal joining line: use
penup,setposition, thenpendown. - Later shape covers an earlier detail: reconsider drawing order.
Optional extension
Write draw_badge(x, y, size, colour) so the complete badge can be drawn at different positions and scales. Use arithmetic based on size rather than several unrelated fixed lengths.
Evidence to hand in
Your teacher should inspect the filled boundary, circle or arc, deliberate style choices and program structure. Be ready to identify the four calls that surround and create one filled shape.
import turtle
screen = turtle.Screen()
screen.setup(800, 600)
artist = turtle.Turtle()
artist.speed("fast")
artist.pencolor("navy")
artist.pensize(3)
def draw_rectangle(width, height, colour):
# Set the fill colour, begin the fill, draw a closed rectangle and end the fill.
pass
# Stage 1: reposition and test the filled rectangle.
# Stage 2: reposition and add a complete circle and an arc.
# Stage 3: combine filled and circular parts into a badge.
turtle.done()