I'm using turtle to make a little game and realized I could use image files with turtle.registershape(filename)
. I know you can resize the default shapes with turtle.shapesize
or turtle.resizemode("auto")
and changing pensize
, but is there any way to resize a gif file using these methods?
import turtle
turtle.addshape("example.gif")
t = turtle.Turtle()
t.shape("example.gif")
t.resizemode("auto")
t.pensize(24)
t.stamp()
turtle.exitonclick()
I want something like this to work, but the turtle is displayed normally, not resized.