Skip to content

Latest commit

 

History

History
203 lines (116 loc) · 3.03 KB

LinearGradient.md

File metadata and controls

203 lines (116 loc) · 3.03 KB

Class: LinearGradient

Class to use to describe a linear gradient.

Example

@Property({
    displayName: 'Background color',
    type: LinearGradient
})
public backgroundColor: LinearGradient;

Hierarchy

  • Color

    LinearGradient

Table of contents

Constructors

Methods

Constructors

constructor

new LinearGradient(angle, startPoint, endPoint, gradientPoints)

Constructor

Parameters

Name Type
angle number
startPoint string
endPoint string
gradientPoints GradientPoint[]

Overrides

Color.constructor

Methods

canConvertFrom

Static canConvertFrom(value): boolean

Check if we can convert a value to a linear gradient

Parameters

Name Type
value unknown

Returns

boolean

Overrides

Color.canConvertFrom


convertFrom

Static convertFrom(value): LinearGradient

Convert a value to a linear gradient

Parameters

Name Type
value unknown

Returns

LinearGradient

Overrides

Color.convertFrom


canConvertTo

canConvertTo(type): boolean

Check if the color can be converted to a type

Parameters

Name Type
type unknown

Returns

boolean

Inherited from

Color.canConvertTo


convertTo

convertTo(type): unknown

Function to convert a color to another type

Parameters

Name Type
type unknown

Returns

unknown

Inherited from

Color.convertTo


equals

equals(color): boolean

Function equals for the color type

Parameters

Name Type Description
color LinearGradient color to compare

Returns

boolean

Overrides

Color.equals


toString

toString(): string

Convert a linear gradient to a string

Returns

string

Overrides

Color.toString


isGradient

isGradient(): boolean

Is the color a gradient?

Returns

boolean

Overrides

Color.isGradient

Help

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/