About Brushes and JSON (JavaScript Object Notation)
Brush objects are used to fill areas on screen. For eg Polygon and TopoPolygon items use a Brush to determine their fill colours and patterns.
SIS Desktop 9 Brushes (and Pens) are specified in JSON.
Note: For examples of JSON with Brushes see user-defined Brushes.
This JSON describes a Brush to produce a green solid fill:
{"Brush":{"Style":"Solid","Colour":{"RGBA":[0,255,0,59]}}}
The resulting fill looks like this:
This JSON describes a Brush to produce a green/yellow hatched fill:
{"Brush":{"Style":"Hatched","Pattern":"X","Colour":{"RGBA":[0,255,0,80]},"BackgroundColour":{"RGBA":[255,255,0,84]}}}
Fill: Hatch Pattern:X Colour: Green (255) Transparency: 80
BackgroundColour; Yellow 255,255
Transparency: 84
The resulting fill looks like this: