Page 89 - iPro_trackGPT_V5_Class6
P. 89

Calculate the angle: Find the angle for each corner by dividing 360 degrees by the number

                    of sides. For instance, to draw a triangle, divide 360 by 3 (the number of sides), resulting in a
                    120-degree turn.
                 Look at these polygons can be made using repeat.
                 Drawing a Square

                 To draw a square in scratch, arrange the blocks as shown below.




























                 Look how these polygons can be made using Repeat.


                                     Polygon                             Command



                                 Triangle              Repeat 3 Move 100 Steps Turn 120 degrees



                                 Pentagon              Repeat 5 Move 100 Steps Turn 72 degrees



                                 Hexagon               Repeat 6 Move 100 Steps Turn 60 degrees



                                 Heptagon              Repeat 7 Move 100 Steps Turn 51 degrees



                                 Octagon               Repeat 8 Move 100 Steps Turn 45 degrees



                                 Nonagon               Repeat 9 Move 100 Steps Turn 40 degrees



                                 Decagon               Repeat 10 Move 100 Steps Turn 36 degrees






                                                                          Scratch Programming— Game Creation     87
   84   85   86   87   88   89   90   91   92   93   94