Page 84 - 2403_Trackpad_V5.1_C6_Fb
P. 84

1. Which block category instructs the sprite to play music?
                                           ______________________________________________________
                          uiz    Bee       2. Which operator allows you to do arithmetic calculations?

                                           ______________________________________________________




                  PEN BLOCKS

                  Pen blocks provide a trail for the sprite and give instructions to change the colour, size and shade
                  of the trail. These blocks are colour-coded as dark green and used to draw shapes in Scratch. In
                  Scratch, you have to add Pen blocks to the block category. To do so, click on the Add Extension

                  button at the bottom left corner of the Code tab and select Pen option. The Pen blocks will be
                  added to the Code tab. Let us read Pen blocks and their functions.


                                Blocks                                           Functions




                                  pen down              It places the pen in the down position.


                                   pen up               It disables drawing operations by lifting the pen.


                              set pen color to          It specifies the colour to be used while drawing.


                         Change pen color    by 10      It modifies the colour of a line.


                             Change pen by  1           It modifies the thickness of the pen.


                                   stamp                It draws or stamps the image of a sprite onto the stage.


                                  erase all             It erases the pen marks from the stage.



                  Drawing Polygons

                  With  the  Repeat  block,  you  can  draw  Polygons.  Examples  of polygons  are triangle,  square,
                  pentagon, hexagon, heptagon, octagon, nonagon, decagon, etc.
                  To draw polygons in Scratch, you must remember three points:

                  1.   You must know the number of sides in the shape. This is the value to be given in repeat
                      block.

                  2.  Each time a repeat command is used, you draw a line and turn at a corner.

                  3.   You must know the 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.



                   82   Premium Edition-VI
   79   80   81   82   83   84   85   86   87   88   89