FANDOM


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

Pc logo 59

Can you see the color? The color is different. Default is White, But Its Black.

? SETBG 0

? SETPEN [PX 15]

? FD 30

?

Community content is available under CC-BY-SA unless otherwise noted.