Class to use to describe a linear gradient.
Example
@Property({
displayName: 'Background color',
type: RadialGradient
})
public backgroundColor: RadialGradient;
-
↳
RadialGradient
• new RadialGradient(originPoint
, centerPoint
, radiusX
, radiusY
, gradientPoints
)
Constructor
Name | Type |
---|---|
originPoint |
string |
centerPoint |
string |
radiusX |
number |
radiusY |
number |
gradientPoints |
GradientPoint [] |
Color.constructor
▸ Static
canConvertFrom(value
): boolean
Check if we can convert a value to a radial gradient
Name | Type |
---|---|
value |
unknown |
boolean
▸ Static
convertFrom(value
): RadialGradient
Convert a value to a radial gradient
Name | Type |
---|---|
value |
unknown |
▸ canConvertTo(type
): boolean
Check if the color can be converted to a type
Name | Type |
---|---|
type |
unknown |
boolean
▸ convertTo(type
): unknown
Function to convert a color to another type
Name | Type |
---|---|
type |
unknown |
unknown
▸ equals(color
): boolean
Function equals for the color type
Name | Type | Description |
---|---|---|
color |
RadialGradient |
color to compare |
boolean
▸ toString(): string
Convert a radial gradient to a string
string
▸ isGradient(): boolean
Is the color a gradient?
boolean
Found a problem, a bug? Or need some help?
Please do not create an issue in Github! Ask us via our Support page : https://support.intuiface.com/