# 'PEN' Define Pen Style

> Source: https://manual.pvxplus.com/mnemonics/pen

**GUI Display/Printer**

## Format

'PEN'(*style,width,colour*)

***Where:***

|  |  |
| --- | --- |
| *colour* | **'PEN'** colour. Use colour code, colour name, or RGB setting; i.e. RGB:*n n n **where** n* = 0 - 255.  <br>  <br>Standard numeric colour values are: |
|  | \|  \|  \|<br>\| --- \| --- \|<br>\| 0 - Black \| 8 - Dark Gray \|<br>\| 1 - Light Red \| 9 - Dark Red \|<br>\| 2 - Light Green \| 10 - Dark green \|<br>\| 3 - Light Yellow \| 11 - Dark Yellow \|<br>\| 4 - Light Blue \| 12 - Dark Blue \|<br>\| 5 - Light Magenta \| 13 - Dark Magenta \|<br>\| 6 - Light Cyan \| 14 - Dark Cyan \|<br>\| 7 - White \| 15 - Gray \| |
| *style* | \|  \|  \|<br>\| --- \| --- \|<br>\| Numeric code for fill pattern type. Supported options include: \|  \|<br>\| 0 - No Pen \| 3 - Dotted \|<br>\| 1 - Solid Pen \| 4 - Dash-dot \|<br>\| 2 - Dashed \| 5 - Dash-dot-dot \| |
| *width* | Pen width, in device pixels. Numeric expression. |

Note:  
'PEN' styles 2 (Dashed), 3 (Dotted), 4 (Dash-dot) and 5 (Dash-dot-dot) only work if width is 1.  
  
'PEN' style 1 (Solid) is the only style that works if width is greater than 1. (This is an internal Windows API specification/ restriction.).

## Description

Use **'PEN'** to define the current pen style, width and colour for graphics drawing.

## Example

```
print 'pen'(1,10,6)
print 'pen'(1,1,"RGB: 192,192,192")
print 'pen'(0,3,"Light Red")
```
