Page 100 - 2422_C4_Flipbook
P. 100

PEN BLOCK


                  The Pen blocks are green in colour. These blocks draw a trail as the Sprite moves on the stage.
                  You can change the colour of the pen. In Scratch 3.0, you have to add Pen blocks to the block
                  category. To do so, follow the given steps:

                  Step 1:   Click on the Add Extension button         at the bottom left corner of the Code tab. The
                           Choose an Extension window opens.











                                           2






                                                                           1
                  Step 2:  Click on Pen option. The Pen blocks are added to the Code tab.
                  Now, let’s learn about some of the Pen blocks and their uses.

                         erase all  block erases everything drawn by the pen.

                      Clicking on    stamp   block creates a duplicate of the current Sprite. The image is stamped
                    on the stage. To see the image, click on the Sprite and drag. A duplicate of the Sprite appears
                    behind it.

                         pen up  block puts the pen up and stops the Sprite from drawing anything.
                     The Sprite draws a non-stop line wherever it moves using           pen down .

                      Use     set pen color to    block to set the colour of the pen to a colour of your choice from the
                    drop-down menu.





                                                                         The circle is the only shape with a
                                                                                     constant width.








                         Change pen color  by 10  block  changes  the  pen  color, saturation,  brightness  and
                    transparency. Click on the first text box to select and change the pen effects. Click on the
                    second text box to give a value by which the effect will change.


                  98    Premium Edition-IV
   95   96   97   98   99   100   101   102   103   104   105