Page 7 - Class 4 Computer Synopsis (LOGO Procedure)
P. 7

DRAWING CIRCLES WITH REPEAT COMMAND
     A circle can be drawn using Repeat command. A full circle is drawn using 360 and a semi-circle using 180
     repeats.
     To draw a circle:            REPEAT 360 [FD 1 RT 1]

     To draw a semi-circle:       REPEAT 180 [FD 1 RT 1]
     To increase or decrease the size of a triangle you can simply change the no of steps in FD or RT and also
     by increasing or decreasing the no of Repeats. The following table would help you:


            Commands
          (360/N Times)              No of Repeats                                Primitive
                RT 5                        72                             REPEAT 72 [FD 5 RT 5]
                RT 10                       36                             REPEAT 36 [FD 5 RT 10]
                RT 15                       24                             REPEAT 24 [FD 5 RT 15]
                RT 20                       18                             REPEAT 18 [FD 5 RT 20]
                RT 30                       12                             REPEAT 12 [FD 5 RT 30]
                RT 40                       9                              REPEAT 9 [FD 5 RT 40]
                RT 60                       6                              REPEAT 6 [FD 5 RT 60]


     FILLING COLOUR IN A DRAWING
     We can add colour to the drawings which are made in Logo. This done with the help of Pen up (PU) command.
     1  we need to draw a shape then we have to give the PU (Pen Up) command and move the turtle inside the
       st
     shape using primitives. Once the turtle is inside the shape, we will give the command fill and the turtle will
     fill the shape with the colour selected.
   2   3   4   5   6   7   8