Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 85 - 2607_Trackpad_Pro_5.1_flipbook_C6
P. 85

    Look at these polygons that can be made using the repeat block.

                                 Polygon                                         Command

                       Triangle                         Repeat 3 Move 100 Steps Turn 120 degrees

                       Square                           Repeat 4 Move 100 Steps Turn 90 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

                     Drawing A Square

                     Create the given Script and observe the sprite moving and turning only four times to draw a square.

                                     when    clicked

                                          pen down

                                     repeat  4

                                      move 100  steps
                                      turn    90  degrees

                     Drawing A Circle

                     To draw a circle, create the given script in Scratch.

                                     when   clicked

                                         pen down

                                         set pen size to  5

                                     repeat  360
                                      move  1  steps

                                      turn    1  degrees

                                           change pen  color  by  5

                                                                                                     Blocks in Scratch  83

| 80 81 82 83 84 85 86 87 88 89 90 |