Reputation: 1
I want python turtle to turn to specific rotation because after drawing something random, I can't know what is turtle's rotation. Is there a command that in I can type exact rotation that I want for turtle to turn? (lt and rt can't help)
Upvotes: 0
Views: 380
Reputation: 36
Assuming t
is your turtle:
>>> t.setheading(new_absolute_angle)
>>> t.seth(new_absolute_angle)
Both work the same way.
Docs: https://docs.python.org/3/library/turtle.html#turtle.setheading
Upvotes: 1