resize a Turtle object
# use stretch_len instead of stretchlen
resize a Turtle object
# use stretch_len instead of stretchlen
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us