Page 24 - 2501_KVS_C-6
P. 24
Look at the code carefully and you will know how I did it.
You can use pen.begin_fill() before drawing a closed figure and close it by pen.end_fill()
after drawing the figure. It creates a shape by filling it with solid colour. You have to give
colour of your choice after begin_fill().
pen.fillcolor(“name of the colour”) can be used to give the color for filling in the closed
shape.
See the above figure. I have used the commands begin_fill(), fillcolor(), end_fill(), along
with the shape command circle().
The code has given me a circle filled with yellow colour having blue outline and pink background
of canvas.
1.8 CHANGING THE TURTLE SHAPE
Aryan: I thought the pen turtle would look like a real turtle but it’s actually shaped
like an arrow.
Gowri: I have one more surprise for you here..Yes you guessed it right ..You can have
the shape of pen as real turtle.
22 KVS DELHI REGION 2025

