resize a turtle object

Solutions on MaxInterview for resize a turtle object by the best coders in the world

showing results for - "resize a turtle object"
Maya
13 Apr 2017
1import turtle # importing turtle module
2wm = turtle.Screen() # making a new window
3turtleObject = turtle.Turtle() # making a turtle and naming it turtleObject
4turtleObject.shape("square") # giving it a custom shape, here square
5turtleObject.shapesize(stretch_wid = 5, stretchlen = 2, outline = 3) # resizing it. (self, stretch_wid, stretch_len, outline)
6wn.exitonclick() # window will exit on mouse click, so you have a time to watch what goes on screen
7