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 16 , a color word or a list of three RGB values, 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.
 

Examples

TopIndex