Page 88 - 2403_Trackpad_V5.1_C3_Fb
P. 88

DRAWING POLYGONS IN SCRATCH


                  Polygons are 2D shapes with three or more straight lines and angles. Examples of

                  polygons are triangle, square, rectangle, quadrilateral, pentagon, octagon, etc.

                  To draw polygons in Scratch, you must remember a few thumb rules. They are:

                     Number of sides in 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.
                     Degree of the angle at the corner

                     It is very easy to calculate this. Just divide 360 by the number of sides in 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.


                                   Polygon                                   Command

                         Triangle                       Repeat 3 [Move 100 Steps   Turn 120 degrees]
                         (3 Sides)


                         Square                         Repeat 4 [Move 100 Steps   Turn 90 degrees]
                         (4 Sides)

                         Pentagon                       Repeat 5 [Move 100 Steps   Turn 72 degrees]
                         (5 Sides)


                         Hexagon                        Repeat 6 [Move 100 Steps   Turn 60 degrees]
                         (6 Sides)

                         Heptagon                       Repeat 7 [Move 100 Steps   Turn 51 degrees]
                         (7 Sides)

                         Octagon                        Repeat 8 [Move 100 Steps   Turn 45 degrees]
                         (8 Sides)


                         Nonagon                        Repeat 9 [Move 100 Steps   Turn 40 degrees]
                         (9 Sides)

                         Decagon                        Repeat 10 [Move 100 Steps   Turn 36 degrees]
                         (10 Sides)









                   86   Premium Edition-III
   83   84   85   86   87   88   89   90   91   92   93