Page 96 - TP_Pluse_V2.2_Class4
P. 96

set pen color  to  50  block will set the pen colour, saturation, brightness and transparency
                    to the given value.


                         DRAWING A LINE IN SCRATCH


                  Let's learn how to draw a line in Scratch. Look at the code and its output.

                  The line appears on the stage.
                                                                                               Tech Hint

                                                                                         To come out of the Full
                                                                                          Screen Control mode:
                                                                                         Click on the Full Screen

                                                                                         Control button        or

                                                                                              press Esc key



                  To view the line in full screen, click on Full Screen Control button         on the top right corner
                  of the stage.



                                                                                                 21 st
                   Let’s Practice                                                              Century   #Technology Literacy
                                                                                                Skills
                    Write a code to make the cat sprite move 30 steps while drawing a line.



                         DRAWING POLYGONS IN SCRATCH


                  Polygons are 2D shapes with three or more straight lines and angles. Examples of polygons
                  are triangle, square, rectangle, quadrilateral, pentagon, octagon, etc.






                   Equilateral   Square      Pentagon     Hexagon     Heptagon     Octagon     Nonagon      Decagon
                    Triangle     (4 sides)   (5 sides)    (6 sides)   (7 sides)    (8 sides)   (9 sides)   (10 sides)
                    (3 sides)
                  To draw polygons in Scratch, you must remember a few thumb rules. These are as follows:

                      You must know the number of sides in the shape. This is the value to be given in Repeat
                    block. For example, you give Repeat 3 to draw a triangle and 4 to draw a square.

                      Each time a Repeat block is used, you draw a line and turn at a corner.

                      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. For example, to draw a triangle, the turn
                    will be 360/3 (sides of the triangle) = 120.

                  94    Plus (Ver. 2.2)-IV
   91   92   93   94   95   96   97   98   99   100   101