Page 52 - ConceptGP_C2_Fb
P. 52

LOGO commands  are  called  primitives. Let  us  learn to  use  some  LOGO
                  primitives.




                           FORWARD COMMAND

                  Forward command is used for moving the turtle forward in the direction in

                  which it is pointing. The short form of Forward command is FD.
                  The command will be given as:


                  FD <space> (number of steps) <Enter>

                  For example, to move the turtle 40 steps ahead and draw a line, you have to
                  type the command as:


                  FD 40 <Enter>
                                                                                                                                                      RIGHT COMMAND


                                                                                                                                            Right command turns the head of the
                                                                                                                                            turtle towards the right side, i.e., in the

                                                                                                                                            clockwise direction. Though the turtle
                                                                                                                                            rotates, it stays at the same position.

                                                                                                                                            The short form of Right command is RT.
                                                                                                                                            The command will be given as:


                                                                                                                                            RT <space> (number of turns)
                                                                                                                                            <Enter>
                                                                                                                                            For  example,  to  turn  the turtle  by  90

                                                                                                                                            turns toward right side, you will type the
                                                                                                                                            command as:
                            BACKWARD COMMAND
                                                                                                                                            RT 90 <Enter>
                  Backward command is used for moving the turtle in the direction opposite to                                               It will turn the face of turtle in right direction by 90 turns.

                  which it is pointing. As the turtle moves backward, its head remains pointed in
                  the upward direction. The short form or Backward command is BK.

                  The command will be given as:                                                                                                       LEFT COMMAND
                                                                                                                                            Left command turns the head of the turtle towards the left side, i.e., in the
                  BK <space> (number of steps) <Enter>
                  For example, to move the turtle 50 steps back and draw a line, you have to                                                anti-clockwise direction. Though the turtle rotates, it stays at the same position.

                  type the command as:                                                                                                      The short form of Left command is LT.

                  BK 50 <Enter>



                   50   Premium Edition-II
   47   48   49   50   51   52   53   54   55   56   57