Ask coding questions

← Back to all posts
How to change size of turtle?
h
Harrison0Home (1)

I'm trying to make a game involving the need for the turtles to change size! How do I do that?

Comments
hotnewtop
Dart (1199)

If

t = turtle.Turtle()
t.width(20) #the higher you go the bigger it gets
Harrison0Home (1)

sorry but it doesn't seem to work can you show me an example? @Zexogon

Dart (1199)

@Harrison0Home

import turtle
t = turtle.Turtle()
t.width(100)
t.forward(100)
t.left(100)
t.forward(100)
t.left(100)
Harrison0Home (1)

Oh sorry! I should have worded it better, I meant how do you change the size of the shape of the turtle? @Zexogon

Dart (1199)

@Harrison0Home oh let me figure that out for you!

Harrison0Home (1)

Hey did you find an answer? if not that's alright.
@Zexogon

Vandesm14 (2736)

Do you mean size of the line it draws or size of the turtle itself?