# 'FILL' Define Fill Style

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

**GUI Display/Printer**

## Formats

|  |  |  |
| --- | --- | --- |
| 1\. | *One-Colour Fill Pattern:* | FILL' (*pattern*,*colour1*) |
| 2\. | *Two-Colour Fill Pattern/Gradient:* | 'FILL' (*pattern*,*colour1,colour2*) |

***Where:***

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| *pattern* | Numeric code for ***fill pattern*** type. Supported options include: |  |  |  |
|  | 0 - No fill | 4 - Crossed line |  |  |
|  | 1 - Solid fill | 5 - Bottom left to top right |  |  |
|  | 2 - Horizontal lines | 6 - Top left to bottom right |  |  |
|  | 3 - Vertical lines | 7 - Diagonal crossed lines |  |  |
|  | \|  \|  \|<br>\| --- \| --- \|<br>\| Numeric code for ***gradient pattern*** direction. Supported options include: \|  \|<br>\| 2 - Top to bottom \|  \|<br>\| 3 - Left to right \|  \|<br>\| 5 - Top-left to bottom-right \|  \|<br>\| 6 - Bottom-left to top-right \|  \| |  |  |  |
| *colour1* | Fill colour. Use colour code, colour name, or RGB setting; i.e. RGB:*n n n **where** n =* 0 - 255. Options include: |  |  |  |
|  | 0 - Black | 8 - Dark Gray |  |  |
|  | 1 - Light Red | 9 - Dark Red |  |  |
|  | 2 - Light Green | 10 - Dark Green |  |  |
|  | 3 - Light Yellow | 11 - Dark Yellow |  |  |
|  | 4 - Light Blue | 12 - Dark Blue |  |  |
|  | 5 - Light Magenta | 13 - Dark Magenta |  |  |
|  | 6 - Light Cyan | 14 - Dark Cyan |  |  |
|  | 7 - White | 15 - Gray |  |  |
| *colour2* | Second colour for *two-colour gradient* or *fill* patterns. Options are the same as for *colour1*; however, when applying two colours, ensure that both are defined using the same convention (i.e. if *colour1* uses RGB, *colour2* must use RGB as well). |  |  |  |
|  |  |  |  |  |

## Description

Use **'FILL'** to define the current fill pattern/gradient and colours for an open channel (default is the terminal).

The direction for *gradient fill* is derived from the pattern codes 2, 3, 5 and 6. Non-gradient *two-colour fill patterns* are 4 and 7 (first colour for lines and the second colour for background fill).

## Examples

```
print 'pen'(1,3,1),'fill'(2,6),'circle'(224,450,100)
print 'fill'(1,"RGB: 192,192,192"),
print 'fill'(0,"Light Red"),
print 'fill'(3,"Colour32","Colour51")
```
