Description Usage Arguments Details See Also Examples
Sets the display options for the Turtle's trace. It is possible to change its color, line type and line width.
1 2 3 4 5 6 7 | turtle_param(col = NULL, lwd = NULL, lty = NULL)
turtle_col(col)
turtle_lwd(lwd)
turtle_lty(lty)
|
col |
numeric or character; trace color, see e.g. |
lwd |
numeric; trace line width, see |
lty |
numeric; trace line type, see |
The Turtle must be initialized prior to using
this function, see 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
1 2 3 4 5 6 7 8 9 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.