Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 109 - 2609_Logiccode
P. 109

    Drawing A Circle

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

                     when  clicked
                         pen down
                         set pen size to  5
                     repeat  360                                                    The circle is the only shape with a
                       move  1  steps                                                        constant width.
                      turn    1  degrees
                           Change pen  color  by   5

                                                                                                           PURE
                           In Scratch, each number is equal to 1 step  of the sprite on the stage. In the
                           turn block, change the degree from 15 to 90.                                    FACT

                            Hashtag

                          #Repeat: To say, write or do something again or more than once
                          #Degree: A measurement of temperature or angle

                                       What if you  could  use Scratch to  create  a sports  competition  game? What
                                       sports would be included, and how would players train and compete to become
                                       champions?

                            REVISIT

                       ▶  Pen blocks provide a trail for the sprite and give instructions to change.
                       ▶  We can draw square, rectangle and other shapes using pen block.
                       ▶  Repeat block is used when we want to use a block more than once.

                       ▶  We can draw polygons using repeat block.
                       ▶  We can work with more than one sprite together in Scratch.

                                                                                                     Shapes in Scratch  107

| 104 105 106 107 108 109 110 111 112 113 114 |