Page 90 - Viva ICSE Computer Studies 6 : E-book
P. 90

Pen Blocks

                    Pen blocks are dark green colour coded blocks. They are used to control pen aspect of Scratch.
                    Pen blocks is assumed to be the least used category of blocks. Let’s understand the functioning
                    of some blocks.

                               Block                                            Function

                                                 This block removes all the marks made by a pen or stamps.


                                                 This block makes the Sprite to draw a trail continuously as it moves.

                                                 This block puts the Sprite’s pen up.

                                                 This block sets the pen’s colour to the mentioned colour.


                                                 This block changes the colour as per the specifi ed value.

                                                 This block sets the pen colour as per the specifi ed value.


                                                 This block changes the pen’s shade as per the specifi ed value.

                                                 This block sets the pen’s shade to the specifi ed amount of value.


                                                 This block changes the pen’s size as per the specifi ed value.

                                                 This block sets the pen’s size as per the specifi ed value.



                            Do and Learn


                      Write a program in which Sprite draws a
                      window as shown.
                      Steps to be Followed
                      •  Start a new project.
                      •  Add the codes in the Script Area as shown.
                      •  Click on the Green fl ag and observe the Sprite
                         drawing the given fi gure.







                    Creating a Duplicate Copy of Sprite

                    Follow these steps to create a duplicate copy of the               Think and Discuss
                    Sprite using the Stamp block.                                    Can scratch be run on a diff erent

                      1.  Drag the blocks from the  ‘Motion’ and  ‘Pen’              operating systems?
                           blocks.


                     78
   85   86   87   88   89   90   91   92   93   94   95