Set turtle's icon

setturtleimg image
(setturtleimg image background)
(setturtleimg image background n)

setti image
(setti image background)
(setti image background n)

Sets turtle's icon to the specified image. Active turtle can be higlighted if background is also given. If one image should be used for all headings then n = 1 should be used as the last argument.
If image = background, then background is skipped.

Example:

repeat 91 [setxy 8 * sin 8 * (repcount-1) 14 * cos 4 * (repcount-1)]
"img := image {-9 15} {9 -15}
setturtleimg :img
cs pu
repeat 360 [wait 5 fd 1 rt 1]

Output: changed icon of the turtle.

See also:

Table of Content