turtle_param {TurtleGraphics} | R Documentation |
Set Display Options
Description
Sets the display options for the Turtle's trace. It is possible to change its color, line type and line width.
Usage
turtle_param(col = NULL, lwd = NULL, lty = NULL) turtle_col(col) turtle_lwd(lwd) turtle_lty(lty)
Arguments
col |
numeric or character; trace color, see e.g. |
lwd |
numeric; trace line width, see |
lty |
numeric; trace line type, see |
Details
The Turtle must be initialized prior to using
this function, see turtle_init
.
See Also
Other TurtleGraphics: TurtleGraphics-package
;
turtle_backward
,
turtle_forward
, turtle_move
;
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_reset
;
turtle_status
Examples
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)
[Package TurtleGraphics version 1.0-5 Index]