Page 79 - TP_iPlus_V2.1_Class6
P. 79
To do so, follow the given steps:
2 Click on Pen option. The Pen
block is added to the Code tab.
1 Click on the Add Extension button.
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 colour of the pen to a colour of your choice from the
drop-down menu.
• block changes the pen colour,
saturation, brightness and transparency. Click on the
arrow of the drop-down menu to select one of the
above mentioned four options of the pen effects. Click
on the text box to give a value by which the effect will
change or incement.
• block will set the pen colour, saturation, brightness and transparency to the
particular value given in the text box.
i + DRAWING A POLYGON
Polygons are enclosed 2D shapes with three or more straight lines. Examples of polygons are
triangle, square, rectangle, quadrilateral, pentagon, octagon, etc.
77
Scratch Programming—Game Creation

