PyDocs

Nav

Graphical user interfaces with Tk

teleport

turtle

function · Added in 3.12
  • teleport(x=None, y=None, *, fill_gap=False)
Teleport, or instantly move, the turtle to an absolute position. Unlike goto(), no line is drawn. If x or y is not given, that coordinate is kept as it is. The turtle’s heading does not change.
1 Example
>>> tp = turtle.pos()
>>> tp
(0.00,0.00)
>>> turtle.teleport(60)
>>> turtle.pos()
(60.00,0.00)
>>> turtle.teleport(y=10)
>>> turtle.pos()
(60.00,10.00)
>>> turtle.teleport(20, 30)
>>> turtle.pos()
(20.00,30.00)
from the Python docs
See Also
No see-alsos for turtle/teleport
0 Notes
No notes for teleport