Page 23 - 2501_KVS_C-6
P. 23

As simple as that..
                              You may increase/decrease the size of circle/dot by changing the radius (for
                         Ø
                             circle()) or the diameter (for dot()).

                             A dot is nothing but a filled-in circle.
                         Ø
                              Unlike circle(), the number passed inside dot() represents the diameter, not the
                         Ø
                             radius.

                 Great work so far!! You have learnt to make basic shapes with your turtle pen on your
                 canvas. Now let us add more fun to this coding thing. I will now tell you how you may change
                 the outline/pen colour and fill your shape with colour of your choice.


                 1.7  FILLING THE IMAGE WITH SOME COLOUR AND
                      OUTLINE COLOUR
                 By default, when you open the turtle the background screen is of white colour, we can
                 change the background of the screen or drawing board as you want by using:

                 Turtle.bgcolor(“name of the colour”)

                 e.g. pen.bgcolor(“green”)
                 To change the outline colour of the shape we can use:

                 Turtle.color(“name of the colour”)
                 e.g. pen.pencolor(“red”)



















                     Gowri: Look, I have changed the background colour to green and pen colour of the shape
                     to red.


                                                                                 Python Turtle                      21
   18   19   20   21   22   23   24   25   26   27   28