Description: This function returns a brush value.
Returns: Numeric
Usage: Steady State
Format: Brush(Foreground, Background, Pattern)
Parameters: Foreground { numeric } { required } { no default: }
Any numeric expression giving the foreground color of the brush pattern. Any value less than 0 or greater than 255 is invalid.
Background { numeric } { required } { no default: }
Any numeric expression giving the background color of the brush pattern. If there is a solid pattern, this parameter is ignored. Any value less than 0 or greater than 255 is invalid.
Pattern { numeric } { required } { no default: }
Any numeric expression giving the hatch pattern to use. A 0 is an invisible pattern, and a 1 is a solid pattern. The maximum style value is 25.
Comments: Brush values are used in layered graphics statements that paint areas (such as GUIPie or GUIEllipse).
This function may not appear in a script.
Example:
newStyle = Brush(12 { Red },
14 { Yellow },
25 { Brick pattern });
The example above creates a brush composed of red bricks outlined in yellow.
See Also: