PyDocs

Nav

Graphical user interfaces with Tk

towards

turtle

function
  • towards(x, y=None)
Return the angle of the line from the turtle’s position to (x,y). If y is None, x must be a pair of coordinates, a Vec2D, for example as returned by pos(), or another turtle. The angle is measured from the turtle’s start orientation, which depends on the turtle mode, see mode().
1 Example
>>> turtle.goto(10, 10)
>>> turtle.towards(0,0)
225.0
from the Python docs
See Also
No see-alsos for turtle/towards
0 Notes
No notes for towards