RadialGradientPremium
A radial color gradient.
| Name | Type | Default | Description | 
|---|---|---|---|
| options | 
 | The configuration of this radial gradient. | |
| stops | 
 | The color stops of the gradient. | 
Constructors
RadialGradient
(options?: RadialGradientOptions)
Creates a new radial color gradient instance.
Parameters
options?
The configuration of this radial 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  | ||||||||||||
| 
 | ||||||||||||
| 
 | 
| center | ||||||
|---|---|---|---|---|---|---|
| Sets the center point of the gradient. Coordinates are relative to the shape bounding box. For example,  | ||||||
| 
 | 
| radius | ||||
|---|---|---|---|---|
| Gets the radius of the gradient. | ||||
| 
 | 
| radius | ||||||
|---|---|---|---|---|---|---|
| Sets the radius of the gradient. | ||||||
| 
 | 
| removeStop | ||||||
|---|---|---|---|---|---|---|
| Removes a color stop from the gradient. | ||||||
| 
 |