SETTURTLEFACTS (SETTF)

Syntax

SETTURTLEFACTS list

SETTF list

Explanation

SETTURTLEFACTS (SETTF) changes the settings of the active turtles to the value given in the list. The list holds the following elements: Each element in the list is interpreted according to its position. If one element is the empty list [], this element is ignored and the current settings of the turtles regarding the element remain.

TURTLEFACTS returns a list of the current situation of the first active turtle. The lists in the same format as that required for SETTURTLEFACTS.

Example

? CS TURTLEFACTS

Result: [0 0 0 \

PENDOWN 4 TRUE \

1 SYSTEM 10 1]

? SETTF [30 30 90 []\

? 2]

?

The turtle moves to position [30 30] with a HEADING of 90. The pen color changes to green. All other factors stay the same.