Class to use to describe a linear gradient.
Example
@Property({
displayName: 'Background color',
type: LinearGradient
})
public backgroundColor: LinearGradient;
-
↳
LinearGradient
• new LinearGradient(angle
, startPoint
, endPoint
, gradientPoints
)
Constructor
Name | Type |
---|---|
angle |
number |
startPoint |
string |
endPoint |
string |
gradientPoints |
GradientPoint [] |
Color.constructor
▸ Static
canConvertFrom(value
): boolean
Check if we can convert a value to a linear gradient
Name | Type |
---|---|
value |
unknown |
boolean
▸ Static
convertFrom(value
): LinearGradient
Convert a value to a linear 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 |
LinearGradient |
color to compare |
boolean
▸ toString(): string
Convert a linear 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/