ColorType Class Reference

The JavaScript class for defining the different color types. Obtain it from Constants. More...

Properties

int SOLID_COLOR
 Represents a solid color. More...
 
int LINEAR_GRADIENT
 Represents a linear gradient color. More...
 
int RADIAL_GRADIENT
 Represents a radial gradient color. More...
 

Detailed Description

The JavaScript class for defining the different color types. Obtain it from Constants.

The constants can be used in Palette and Color methods.

myPalette.createNewColor(PaletteObjectManager.Constants.ColorType.SOLID_COLOR, "myPaletteName", { r : 255, g: 0, b: 0, a : 255 });

Property Documentation

◆ LINEAR_GRADIENT

int ColorType::LINEAR_GRADIENT
read

Represents a linear gradient color.

◆ RADIAL_GRADIENT

int ColorType::RADIAL_GRADIENT
read

Represents a radial gradient color.

◆ SOLID_COLOR

int ColorType::SOLID_COLOR
read

Represents a solid color.