Page 17 - 2501_KVS_C-6
P. 17

Now, when I say turtle, I actually mean the PEN. The turtle can move up or down, but when
                 it moves up or down, it just changes position—no line is drawn. Now let us understand the
                 directions first.

                 1.4.1 Understanding Directions

                     Gowri: There are four directions that a turtle can move in:
                             Forward
                         Ø
                             Backward
                         Ø
                             Left
                         Ø
                             Right
                         Ø
                 The turtle moves in Forward or Backward direction that it is facing. You may change the
                 direction by using Left or Right to an angle degree.






                                             Quadrant 2                     Quadrant 1

                                                (–x, +y)                      (+x, +y)






                                              Quadrant 3                    Quadrant 4

                                                (–x, -y)                      4(+x, –y)






                                                                Fig. 1.3
                 Please look at the above direction fig.1.3 and you will understand how to go about it.
                 Now let us see one simple example.

                 If you type these lines as program code:
























                                                                                 Python Turtle                      15
   12   13   14   15   16   17   18   19   20   21   22