Page 109 - 2611_SmartGPT Pro V(5.0) C-4
P. 109

Operator                 Meaning                                  Examples





                                         Logical or                   when    clicked

                           or            The result is true, if one   if     100  > 50    or    100  > 200   then
                                         of the statements is           say 100 is either greater than 50 or 200
                                         true.



                                         Logical not
                                                                      when    clicked
                                         Reverses the condition,
                        not              i.e. it’s false if the       if     not    50  > 100   then
                                         condition is true and          say Reverses the condition

                                         vice-versa.






                           CREATING SHAPES


                 We have learnt how to control sprites. Now, let us learn about creating shapes in Scratch
                 using Pen block category.


                 PEN BLOCK

                 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. We can add pen blocks by clicking on the Add Extension button, then
                 clicking on Pen extension to add it. Let us learn about 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.






                                                                                                 Blocks in Scratch  107
   104   105   106   107   108   109   110   111   112   113   114