Answers for "resize a Turtle object"

0

resize a Turtle object

# use stretch_len instead of stretchlen
Posted by: Guest on September-27-2021
0

resize a Turtle object

import turtle # importing turtle module
wm = turtle.Screen() # making a new window
turtleObject = turtle.Turtle() # making a turtle and naming it turtleObject
turtleObject.shape("square") # giving it a custom shape, here square
turtleObject.shapesize(stretch_wid = 5, stretchlen = 2, outline = 3) # resizing it. (self, stretch_wid, stretch_len, outline)
wn.exitonclick() # window will exit on mouse click, so you have a time to watch what goes on screen
Posted by: Guest on December-14-2020

Python Answers by Framework

Browse Popular Code Answers by Language