Page 73 - Touchcode_C5_Flipbook
P. 73
CODING CORNER
SCRATCH
PEN BLOCK
The Pen blocks are green in colour. These blocks draw a trail as the Sprite moves on
the stage. You can change the color of the pen. In Scratch 3.0, you have to add Pen
blocks to the block category. To do so, follow the given steps:
Step 1: Click on the Add Extension button at the bottom left corner of the
Code tab. A Choose an Extension window opens.
2
1
Step 2: Click on Pen option. The Pen blocks are added to the Code tab.
Now let us learn about some of the Pen blocks and what they are used for.
block erases everything drawn by the pen.
Clicking on block creates a duplicate of the current Sprite. The image is
stamped on the stage. To see the image, click on the Sprite and drag. A duplicate
of the Sprite appears behind it.
block puts the pen up and stops
the Sprite from drawing anything.
The Sprite draws a non-stop line
wherever it moves using .
Use block to set the color
of the pen to a color of your choice
from the drop-down menu.
Coding Corner 71

