An abstract base class representing common members of all drawing elements.
The color stops of the gradient.
Adds a color stop to the gradient.
The color can be in any of the following formats:
|red||The basic or extended CSS color name|
|#ff0000||The Hex RGB value|
|rgb(255, 0, 0)||The RGB value|
' ' (an empty string) clears the fill.
The stop offset from the start of the element. Ranges from zero (the start of the gradient) to one (the end of the gradient).
The color of the stop.
The fill opacity. Ranges from zero (completely transparent) to one (completely opaque).
- The new gradient color stop.
Removes a color stop from the gradient.
The gradient color stop to remove.