powered by
Sets the display options for the Turtle's trace. It is possible to change its color, line type and line width.
turtle_param(col = NULL, lwd = NULL, lty = NULL)turtle_col(col)turtle_lwd(lwd)turtle_lty(lty)
turtle_col(col)
turtle_lwd(lwd)
turtle_lty(lty)
numeric or character; trace color, see e.g. colors and gpar.
colors
gpar
numeric; trace line width, see gpar.
numeric; trace line type, see gpar.
The Turtle must be initialized prior to using this function, see turtle_init.
turtle_init
Other TurtleGraphics: TurtleGraphics-package, turtle_do, turtle_getpos, turtle_goto, turtle_init, turtle_move, turtle_reset, turtle_show, turtle_status, turtle_turn, turtle_up
TurtleGraphics-package
turtle_do
turtle_getpos
turtle_goto
turtle_move
turtle_reset
turtle_show
turtle_status
turtle_turn
turtle_up
# NOT RUN { turtle_init() turtle_forward(5) turtle_up() turtle_forward(3) turtle_down() turtle_left(90) turtle_forward(5) turtle_param(col = "red", lwd = 2, lty = 2) turtle_forward(5) # }
Run the code above in your browser using DataLab