Star Student Builder logoStar Student Builder
← Block Builders Lesson 4Std 3-5

Pen, Colour and Fill

The turtle carries one pen, and you are in charge of it. You can lift it to move without leaving a line, make it thick or thin, change its colour, and tell it to fill shapes in solidly instead of drawing only the outline.

πŸ’‘ The idea

The pen has settings: a colour, a width, up or down, and fill on or off.

  • penup lifts the pen. pendown puts it back. Use them to move without a trail.
  • width 1 is a thin line and width 20 is very fat.
  • fill on means shapes come out solid. fill off goes back to outlines.
  • A filled shape uses the pen colour, so set the colour first.
  • colour rainbow changes the colour a little with every line you draw.

πŸ“˜ Words to know

pen
the tool the turtle draws with
fill
colour a shape in solidly
outline
only the edge of a shape

πŸ‘€ Watch this

A solid green circle on the right, and beside it a blue square that is only an outline.

colour green
fill on
circle 40
fill off
penup
goto -130 -45
pendown
colour blue
square 90
What this program draws
What it draws

✍️ Your turn

  1. Run it and spot the difference between the two shapes.
  2. Move fill off to the very end and run it again. Now both are solid.
  3. Delete the penup line and see the stray line that appears.
  4. Add width 8 at the top.
  5. Fill a star: colour yellow, fill on, star 80.

🎯 Challenge: Draw one filled red square, and beside it a red square that is only an outline.

Show me one answer
colour red
fill on
square 70
fill off
penup
goto -110 0
pendown
square 70

Your program
Ask GuruAcharya Samayeshwar