TwoColorGradient

TwoColorGradient class

Represents two color gradient.

class TwoColorGradient;

Constructors

NameDescription
constructor(Color, Color, GradientStyleType, number)

Properties

PropertyTypeDescription
color1ColorGets and sets the first gradient color.
color2ColorGets and sets the second gradient color.
gradientStyleTypeGradientStyleTypeGets and sets gradient shading style.
variantnumberGets and sets the gradient variant.

constructor(Color, Color, GradientStyleType, number)

constructor(color1: Color, color2: Color, gradientStyleType: GradientStyleType, variant: number);

Parameters:

ParameterTypeDescription
color1Color
color2Color
gradientStyleTypeGradientStyleType
variantnumber

color1

Gets and sets the first gradient color.

color1 : Color;

color2

Gets and sets the second gradient color.

color2 : Color;

gradientStyleType

Gets and sets gradient shading style.

gradientStyleType : GradientStyleType;

variant

Gets and sets the gradient variant.

variant : number;