Changing the Turtle Size

1

Changing the Turtle Size

  • You can increase or decrease the size of the onscreen turtle to make it bigger or smaller. This changes only the size of the shape without affecting the output of the pen as it draws on the screen.

Source Code:

#follow : programmerfect

import turtle as t
t.shapesize(1,5,10)
t.shapesize(10,5,1)
t.shapesize(1,10,5)
t.shapesize(10,1,5)
 

Output:

The numbers given are the parameters for the size of the turtle:
  • Stretch length
  • Stretch width
  • Outline width
Note : You can change these according to your preference. For more information on how you can change the size of the turtle, check out the Python turtle library documentation



Post a Comment

1Comments
Post a Comment