Page 72 - Computer Genius Class 05
P. 72

The line appears on the stage.


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

                                                                 Notes

                                    To come out of the Full Screen Control mode, Click on the Full
                                              Screen Control button       or press Esc key





                  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
                                Triangle    sides         sides              sides              sides









                                   Heptagon            Octagon            Nonagon            Decagon
                                       sides              sides              sides           1  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
                      loc . For example  you gi e repeat   to dra  a triangle and   to dra  a s uare.

                     Each time a repeat command 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
                     di ide      y the num er o  sides in the shape. For example  to dra  a triangle  the turn
                      ill  e        sides o  the triangle    12 .

                  Look at these polygons that can be made using repeat.


                                       Polygon                              Command


                              Triangle                   Repeat 3  o e 1    teps Turn 12  degrees


                              Square                      epeat    o e 1    teps Turn    degrees




                       70    Computer Genius-V
   67   68   69   70   71   72   73   74   75   76   77