Page 74 - iPrime_V2.2_class6
P. 74

Block category                                           Use
                                      They hold variables and lists for the values to be used in the Scratch script.
                        Variables
                                      They are user-made custom  blocks for any special requirement.
                        My Blocks

                   Clickipedia



                    A loop is a process that instructs a computer to repeat a set of commands a specified number
                    of times.

                      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.



























                  Step 2  Click on Pen option. The Pen blocks are added to the Code tab.
                  Now, let us 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.


                  72     iPRIME (Ver. 2.2)–VI
   69   70   71   72   73   74   75   76   77   78   79