GradientPremium
An abstract base class representing common members of all drawing elements.
| Name | Type | Default | Description | 
|---|---|---|---|
| stops | 
 | The color stops of the gradient. | 
Constructors
Gradient
()
Methods
| addStop | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Adds a color stop to the gradient. The color can be in any of the following formats: | Format | Description | --- | --- | --- | red | The basic or extended CSS color name | #ff0000 | The Hex RGB value | rgb(255, 0, 0) | The RGB value Specifying  | ||||||||||||
| 
 | ||||||||||||
| 
 | 
| removeStop | ||||||
|---|---|---|---|---|---|---|
| Removes a color stop from the gradient. | ||||||
| 
 |