| turtle_reset | R Documentation |
This function resets the Turtle's position, direction, and graphical options.
turtle_reset()
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.
Other TurtleGraphics: TurtleGraphics-package,
turtle_do, turtle_getpos,
turtle_goto, turtle_init,
turtle_move, turtle_param,
turtle_show, turtle_status,
turtle_turn, turtle_up
turtle_init() turtle_forward(4) turtle_param(col="red", lty=2, lwd=3) turtle_reset() turtle_left(45) turtle_forward(3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.