Andro 65
Andro 65

Reputation: 1

How to turn python turtle to specific rotation

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

Answers (1)

Bastián Bas
Bastián Bas

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

Related Questions