Details

A Linear Brush is used to create a gradient color that transitions between the colors specified in the Colors property.
Linear brush has start and end coordinates to create an imaginary line that defines the path the gradient will follow, allowing the gradient to be vertical, horizontal or on an angle.

Example

The sample below changes from red at the start to blue at the end. This is denoted by the use of At(100) on the second color (#BrushColor2).
As the transition is uniform the red channel is decremented from 255 to 0 while the blue channel increases from 0 to 255. The result is that at the mid-point the color will be 128:0:128, which is purple.
The IDE will manage the creation of styles and brushes. This code is provided for reference purposes.