TurtleGraphics - Online Manual

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_backward, turtle_forward, turtle_move; turtle_col, turtle_lty, turtle_lwd, turtle_param; turtle_down, turtle_up; turtle_do; turtle_getangle, turtle_getpos; turtle_goto, turtle_setangle, turtle_setpos; turtle_hide, turtle_show; turtle_init; turtle_left, turtle_right, turtle_turn; turtle_status

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-5 Index]