Page 27 - 2501_KVS_C-6
P. 27
For example, in the above example pen is our turtle, if, I need to have another turtle by the
name pen1 then I can write:
pen1=pen.clone()
We can use two or more clones of the turtle with different colours to create beautiful
patterns ..let me show you how:
In this example, I have created first turtle by naming it pen1 and pencolor as red, then I
cloned it in pen2 (another turtle is created) and changed its pencolor to blue. While drawing
the circles with both I just changed the radius and see I have got a beautiful pattern.
1.11 SMALL PROJECT 1
We can use the pen() function with different parameters for creating pen1 with a random
size and fillcolor and some other for pen2/pen3.
This beautiful pattern was created using three different turtles, made by cloning, and then
changing their pen and fill colours.
Python Turtle 25

