The Turtle Stamp Procedure

You can change the shape of the turtle using the shape procedure. In the program below we set it to look more like a turtle.

A turtle can also stamp a copy of itself on the screen (turtle drawing area), and this will remain after the turtle has moved somewhere else. Do this with the stamp procedure. Stamping works even when the pen is up. You can ask the turtle to pick up the pen using the up procedure as shown below. When the pen is up the turtle will not draw a line when it moves.

Here is an example that shows off these new features.

The list of integers shown under the picture above is created by printing the range(5,60,2) result. This shows you the distances used to move the turtle forward each time through the for loop.

All except one of the shapes you see on the screen here are copies of the turtle shape created by stamp. But the program still only has one turtle instance — can you figure out which one is the real tess? (Hint: if you’re not sure, write a new line of code after the for loop to change tess’ color, or to put her pen down and draw a line, or to change her shape, etc.)

Mixed up program

You have attempted of activities on this page