Page 87 - 2403_Trackpad_V5.1_C3_Fb
P. 87
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 colour of the pen. In Scratch 3, you have to add Pen
blocks to the block category. To do so, follow the given steps:
2 Click on Pen option.
1 Click on the
Add Extension
button.
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.
erase all block erases everything drawn by the pen.
stamp block creates a duplicate of the current sprite. To see the image, click on
the sprite and drag.
pen up block puts the pen up and stops the sprite from drawing
anything.
The sprite draws a non-stop line wherever it moves using pen down .
set pen color to block sets the colour of the pen to a colour of your
choice from the drop-down menu.
Change pen color by 10 block changes the pen colour, saturation,
brightness and transparency. Click on the first text box to select
and change the pen effects. Click on the second
text box to give a value by which the effect will
change.
set pen color to 50 block will set the pen colour,
saturation, brightness and transparency to the
given value.
To view the line in full screen, click on Full Screen
Control button on the top right corner of the stage.
Introduction to Scratch Programming 85

