Syntax
PEN
Explanation
PEN outputs the pen mode of the current turtle. Available modes are PENDOWN, PENUP, PENERASE, and PENREVERSE.
The output of PEN is the same as the input to SETPEN.
Example
? DRAW
? PEN
Result: PENDOWN
? PENREVERSE
? PEN
Result: PENREVERSE
?