Please enable JavaScript to view this site.

A-Shell Consolidated Reference

//SETBRUSH, style, hatch {, r, g, b}

SETBRUSH is similar to SETPENEX except that it selects a brush that is used only to fill in rectangles and ellipses, and only then when you use the fill options light gray, gray, and dark gray. In those cases, the brush defined previously by SETBRUSH will be used instead of the default brush. See the topic Parameters: Symbols vs. Values if you have questions about which to use.

Parameters

style

Symbol

Value

Description

BS_SOLID

0

Solid

BS_NULL

1

No brush (negates SETBRUSH)

BS_HATCHED

2

Hatched, see below

 

hatch

If style is set to BS_HATCHED, then hatch defines the type of hatch pattern used by the brush, from the following table:

Symbol

Value

Description

HS_HORIZONTAL

0

Horizontal lines (- - - - -)

HS_VERTICAL

1

Vertical lines (| | | | |)

HS_BDIAGONAL

2

Diagonal lines (\ \ \ \ \)

HS_FDIAGONAL

3

Diagonal lines (/ / / / /)

HS_CROSS

4

Crosshatch (+ + + + +)

HS_DIAGCROSS

5

Diagonal crosshatch (x x x x x)

 

r, g, b

The r, g, and b parameters are optional, but if specified, must all be specified. See the SETTEXTCOLOR directive for notes.