Skip to content
Lessons Primary 4 Basic Digital Literacy Basic Computer Programming

Drawing and Sketching with Scratch Pen Blocks for Primary 4

Drawing and Sketching with Scratch Pen Blocks for Primary 4
Study comfort0% read
Curriculum at a glance Your lesson roadmap Class, subject, theme and the learning goal for this lesson.
Class Primary 4
Subject Basic Digital Literacy
Theme Basic Computer Programming
Topic Sketch with Block Coding (Using Scratch)
Curriculum September 2025
Sequence 18
Learning outcome

Use visual programming language to create digital content

Focal competence

Sketching objects using visual programming language

ARTICLE CONTENTSOn this page 6 sections

Sketch with Block Coding (Using Scratch)

Performance Objectives

By the end of the lesson, students should be able to:

  1. explain the meaning of Pen blocks
  2. identify the functions of Pen Blocks;
  3. use Pen Extension Blocks to create 2D images.

Introduction to Scratch and Drawing

Computers can do many things, including helping people draw and create pictures. In Basic Digital Literacy, drawing on a computer often involves using special tools or programs. One fun way to draw with a computer is by using a program called Scratch.

Scratch is a visual programming language. This means that instead of typing complicated words, people use colourful blocks that fit together like puzzle pieces to tell the computer what to do. These blocks control a character called a “sprite” on the screen.

What Are Pen Blocks in Scratch?

Pen blocks in Scratch are special programming blocks that allow the sprite to draw lines and shapes on the screen. Imagine the sprite has a pen attached to it. When the pen is down, the sprite draws a line as it moves. When the pen is up, the sprite moves without drawing.

Pen blocks are not part of the main blocks when Scratch first opens. They need to be added as an “extension” to the project. This makes them available for use in drawing.

Screenshot of Scratch interface showing how to add the Pen extension.
Adding the Pen extension in Scratch.

Functions of Pen Extension Blocks

The Pen extension in Scratch provides several blocks, each with a specific function to help draw on the screen. These blocks control the pen’s state, colour, size, and how it clears the drawing.

The main functions of Pen Blocks are:

  1. Erase All: This block clears everything drawn on the screen by the pen. It makes the drawing area clean again.
  2. Pen Down: This block tells the sprite to put its pen down. From this moment, as the sprite moves, it will draw a line.
  3. Pen Up: This block tells the sprite to lift its pen up. When the pen is up, the sprite can move without drawing any lines.
  4. Set Pen Colour to: This block changes the colour of the line the pen will draw. People can choose any colour they like.
  5. Change Pen Colour by: This block changes the pen’s colour by a certain amount. It can be used to create a rainbow effect or gradually shift colours.
  6. Set Pen Size to: This block sets the thickness of the line the pen will draw. A larger number makes a thicker line, and a smaller number makes a thinner line.
  7. Change Pen Size by: This block increases or decreases the thickness of the pen’s line by a certain amount.
Screenshot of the Scratch Pen blocks palette showing various pen control blocks.
Common Pen blocks and their functions.

Sketching with Pen Blocks in Scratch

To sketch 2D images using Scratch Pen blocks, a person needs to combine movement blocks with Pen blocks. The sprite’s movement (like moving forward or turning) will create the lines, while the Pen blocks control the drawing itself.

Creating a Rectangle

A rectangle has four sides and four corners. Opposite sides are equal in length, and all corners are right angles (90 degrees). To draw a rectangle, the sprite needs to draw a side, turn, draw another side, turn, and repeat this until all four sides are drawn.

The procedure to create a rectangle involves the following steps:

  1. Start a new Scratch project: Open Scratch and add the Pen extension.
  2. Clear the screen: Drag the Erase All block to the scripting area.
  3. Set pen properties: Drag Set Pen Colour to and choose a colour. Drag Set Pen Size to and set it to a number like 3 or 5 for a visible line.
  4. Put the pen down: Drag the Pen Down block.
  5. Draw the first side: Drag a Move (100) steps block. (100 is an example length).
  6. Turn: Drag a Turn (90) degrees block.
  7. Draw the second side: Drag another Move (50) steps block. (50 is an example length for the shorter side).
  8. Turn: Drag another Turn (90) degrees block.
  9. Draw the third side: Drag a Move (100) steps block.
  10. Turn: Drag another Turn (90) degrees block.
  11. Draw the fourth side: Drag a Move (50) steps block.
  12. Lift the pen: Drag the Pen Up block to stop drawing.
  13. Run the script: Click the green flag or the script itself to see the rectangle drawn.
Scratch code to draw a rectangle using Pen blocks.
Scratch blocks arranged to draw a rectangle.

Creating a Zig-Zag Pattern

A zig-zag pattern is a series of short lines that go back and forth, like a saw blade or a lightning bolt. It involves moving forward and then turning at an angle, then moving forward and turning back at another angle.

The procedure to create a zig-zag pattern involves the following steps:

  1. Start a new Scratch project: Open Scratch and add the Pen extension.
  2. Clear the screen: Drag the Erase All block to the scripting area.
  3. Set pen properties: Drag Set Pen Colour to and choose a colour. Drag Set Pen Size to and set it to a number like 3.
  4. Put the pen down: Drag the Pen Down block.
  5. Draw the first segment: Drag a Move (50) steps block.
  6. Turn right: Drag a Turn (60) degrees block. (60 degrees is an example angle).
  7. Draw the second segment: Drag a Move (50) steps block.
  8. Turn left: Drag a Turn (120) degrees block. (120 degrees is an example angle to turn back).
  9. Repeat: To make the zig-zag longer, repeat steps 5 to 8 several times. A Repeat block can be used to make this easier. For example, put steps 5-8 inside a Repeat (5) block.
  10. Lift the pen: Drag the Pen Up block.
  11. Run the script: Click the green flag or the script to see the zig-zag pattern.
Scratch code to draw a zig-zag pattern using Pen blocks.
Scratch blocks arranged to draw a zig-zag pattern.
Basic Digital Literacy PRACTICE

Ready to test what you learned?

Check your understanding of Drawing and Sketching with Scratch Pen Blocks for Primary 4 with a quick, focused quiz and instant feedback.

20 questions · Instant results · Retake anytime
Quick practice
KEEP YOUR MOMENTUMNext in Basic Digital Literacy
19of 23
Basic Computer Programming

Sequence in programming

Keep the idea fresh by moving forward while it is still active in your mind.

Help another learner

Share this lesson

Know someone studying this topic? Send them this lesson so they can learn and practise too.

Community

0 comments

Open the discussion when you need it. Comments stay collapsed until requested so the initial article remains light.

Royal Alikor
About the author

Royal Alikor

Teacher/Educational Writer

Author profile →

Royal Alikor is an educator with six years of classroom teaching and three years of elementary school leadership experience and is still teaching. He develops and reviews practical, curriculum-aligned learning materials for Nigerian schools and teachers.

Reviewed byNnabugwu Onyenachiha PerpetualEducational Quality Assurance Director · Reviewed
Nigerian Basic and Senior Education Curriculum
1,367 published articlesSurePass editorial standards ↗

Share with