WIDTH

Syntax

WIDTH

Explanation

WIDTH outputs the pen width of the first active turtle. The pen width can be a number between 1 and 999. SETWIDTH sets the pen width.

If more than one turtle is active, the pen width of these turtles may be interrogated with WIDTH and the ASK or EACH commands.

Example

? DRAW

? WIDTH

Result: 1

? TELL [0 1 2 3 4]

? SETWIDTH 5

? EACH [PRINT WIDTH]

5

5

5

5

5

?