Page 81 - TP_iPlus_V2.1_Class6
P. 81
Polygon Command
Triangle Repeat 3 [Move 100 Step Turn 120 degrees
Square Repeat 4 [Move 100 Step Turn 90 degrees]
Pentagon Repeat 5 [Move 100 Step Turn 72 degrees]
Hexagon Repeat 6 [Move 100 Step Turn 60 degrees]
Heptagon Repeat 7 [Move 100 Step Turn 51 degrees]
Octagon Repeat 8 [Move 100 Step Turn 45 degrees]
Nonagon Repeat 9 [Move 100 Step Turn 40 degrees]
Decagon Repeat 10 [Move 100 Step Turn 36 degrees]
Quick Byte
Use the Hide block to hide the Sprite after drawing the shape.
i + DRAWING A CIRCLE
To draw a circle, create the given script in Scratch.
i + DRAWING PATTERNS
To draw a pattern, we use Stamp block from the Pen blocks menu. The Stamp block duplicates
Sprite’s image onto the stage.
79
Scratch Programming—Game Creation

