Page 65 - modular4.0
P. 65

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

















                                Clickipedia



                       If you do not want the sprite to appear over the figure, you can end the code here. But if

                     you want to see both the shape and the sprite, snap the        block at the end of the code.





                        DRAWING A CIRCLE IN SCRATCH


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






















                          Recap



                         Pen blocks draw a trail as the Sprite moves on the stage.

                        Polygons  are  2D  shapes  with  3  or  more  straight  lines  and  angles.  Examples  of
                      polygons are triangle, square, rectangle, pentagon, hexagon, heptagon, octagon,
                      nonagon, decagon.

                        You can calculate the degree of the angle at the corner of a polygon by dividing 360
                      by the number of sides.





                                                                                           Creating Shapes in Scratch  63
   60   61   62   63   64   65   66   67   68   69   70