Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 68 - 2616_V iCode_C-5
P. 68

    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 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 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.
                      Look at these polygons that can be made using repeat command.

                                       Polygon                                 Command

                                Triangle                   Repeat 3 Move 100 Steps Turn 120 degrees

                                Square                     Repeat 4 Move 100 Steps Turn 90 degrees

                                Pentagon                   Repeat 5 Move 100 Steps Turn 72 degrees

                                Hexagon                    Repeat 6 Move 100 Steps Turn 60 degrees

                                Heptagon                   Repeat 7 Move 100 Steps Turn 51 degrees

                                Octagon                    Repeat 8 Move 100 Steps Turn 45 degrees

                                Nonagon                    Repeat 9 Move 100 Steps Turn 40 degrees

                                Decagon                    Repeat 10 Move 100 Steps Turn 36 degrees

                      Drawing a Square in Scratch

                      To draw a square in Scratch, follow the given steps:

                       Step 1    Click on Events blocks category               .

                       Step 2   Click and drag the                 block to the script area.

                       Step 3   Then click on Looks blocks category                 .

                       Step 4   Click and drag the             block to the script area and snap it below the hat

                                 block.

                       Step 5   Click on Pen blocks category              .

                       Step 6   Click and drag the                 block to the script area and snap it to the script.

                          66     Premium Edition-V

| 63 64 65 66 67 68 69 70 71 72 73 |