| turtle_reset {TurtleGraphics} | R Documentation |
Reset the Turtle's Position and Direction
Description
This function resets the Turtle's position, direction, and graphical options.
Usage
turtle_reset()
Details
The Turtle must be initialized prior to using
this function, see turtle_init.
After a call to this function, the Turtle will be placed in the terrarium's center and it will be directed to the north.
The drawing remains unchanged.
See Also
Other TurtleGraphics: TurtleGraphics-package,
turtle_do, turtle_getpos,
turtle_goto, turtle_init,
turtle_move, turtle_param,
turtle_show, turtle_status,
turtle_turn, turtle_up
Examples
turtle_init()
turtle_forward(4)
turtle_param(col="red", lty=2, lwd=3)
turtle_reset()
turtle_left(45)
turtle_forward(3)
[Package TurtleGraphics version 1.0-8 Index]