Page 86 - Touchpad_Plus_V3.2_Class4
P. 86
To draw polygons in Scratch, you must remember a few thumb rules. These are as
follows:
You must know the number of sides of the shape. This is the value to be given
in Repeat block. For example, you give Repeat 3 to draw a triangle and 4 to draw
a square.
Each time a Repeat block is used, you draw a line and turn at a corner.
You must know the degree of the angle at the corner. It is very easy to calculate
this. Just divide 360 by the number of sides of the shape. For example, to draw a
triangle, the turn will be 360/3 (sides of the triangle) = 120.
Look at these polygons that can be made using Repeat block.
Polygon Command
Repeat 3 Move 100 Steps Turn 120
Triangle
degrees
Repeat 4 Move 100 Steps Turn 90
Square degrees
Repeat 5 Move 100 Steps Turn 72
Pentagon
degrees
Repeat 6 Move 100 Steps Turn 60
Hexagon degrees
Repeat 7 Move 100 Steps Turn 51
Heptagon
degrees
Repeat 8 Move 100 Steps Turn 45
Octagon degrees
Repeat 9 Move 100 Steps Turn 40
Nonagon
degrees
Repeat 10 Move 100 Steps Turn 36
Decagon degrees
DRAWING A SQUARE IN SCRATCH
Now you will learn how to draw a square in Scratch. The steps are given below:
Step 1 Click on Events blocks category .
Step 2 Click and drag the when clicked block to the script area.
Step 3 Click on Pen blocks category .
Step 4 Click on erase all block and drag it to the script area and snap it to the
script.
84 Plus (Ver. 3.2)-IV

