SETPEN

Syntax

SETPEN [penstate pencolor]

Explanation

SETPEN changes the state of the turtle's pen and the pen color as specified by its input list. The first element of the list can be PENUP, PENDOWN, PENERASE, or PENREVERSE. The second element is a number from 0 to 255 which specifies the pen color.

Use PEN to output the current turtle's pen state and PENCOLOR to output the current turtle's pen color. See also SETPC.

Example

? SETBG 0

? SETPEN [PX 15]

? FD 30

?