This escape sets the pen that is used for subsequent line drawing.
Parameter |
Value or Description |
Lead-In |
<ESC>p |
Sequence |
Width, Red, Green, Blue |
Termination |
null |
where:
Width |
The width of the pen. The size uses the standard coordinate system, allowing the size of the pen to be easy matched to the size of text. Setting a pen size of 0 results in a pen size of 1, i.e. the smallest line that the printer can generate. |
Red |
The amount of red to use for the pen. 0-255 range |
Green |
The amount of green to use for the pen. 0-255 range |
Blue |
The amount of blue to use for the pen. 0-255 range |
Example
Sets the pen to black with a width of 4 units
PRINT CHR$(27);"p";
PRINT "4,0,0,0";CHR$(0);