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
Are there any code examples left?
New code examples in category Python