Skip to content

Latest commit

 

History

History
204 lines (117 loc) · 3.07 KB

RadialGradient.md

File metadata and controls

204 lines (117 loc) · 3.07 KB

Class: RadialGradient

Class to use to describe a linear gradient.

Example

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

Hierarchy

  • Color

    RadialGradient

Table of contents

Constructors

Methods

Constructors

constructor

new RadialGradient(originPoint, centerPoint, radiusX, radiusY, gradientPoints)

Constructor

Parameters

Name Type
originPoint string
centerPoint string
radiusX number
radiusY number
gradientPoints GradientPoint[]

Overrides

Color.constructor

Methods

canConvertFrom

Static canConvertFrom(value): boolean

Check if we can convert a value to a radial gradient

Parameters

Name Type
value unknown

Returns

boolean

Overrides

Color.canConvertFrom


convertFrom

Static convertFrom(value): RadialGradient

Convert a value to a radial gradient

Parameters

Name Type
value unknown

Returns

RadialGradient

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 RadialGradient color to compare

Returns

boolean

Overrides

Color.equals


toString

toString(): string

Convert a radial 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/