The JavaScript class for manipulating colours. Can be created from a Palette object. More...
Public Slots | |
void | setColorType (String &colorType) |
void | setColorType (int t) |
void | setColorData (QVariant v) |
Set the rgba or gradient values of the colour. More... | |
Public Slots inherited from BaseColor | |
void | setName (String &n) |
Properties | |
int | colorType |
The type of colour can be: ColorType.SOLID_COLOR, ColorType.LINEAR_GRADIENT or ColorType.RADIAL_GRADIENT. More... | |
QVariant | colorData |
The colour as either an object if the colour is solid or an array of objects if it is a gradient. More... | |
Properties inherited from BaseColor | |
bool | isTexture |
If true, the color pot is a texture. More... | |
String | name |
The color pot name. More... | |
String | id |
Unique ID of the color. More... | |
bool | isValid |
Returns true if the color is valid. More... | |
The JavaScript class for manipulating colours. Can be created from a Palette object.
A Color object can be a solid colour, a linear gradient or a radial gradient.
|
slot |
Set the rgba or gradient values of the colour.
v | Is either an object for solid colours or an array of objects for gradients |
|
slot |
colorType | One of the ColorType, ex: "SOLID_COLOR", "LINEAR_GRADIENT" or "RADIAL_GRADIENT" |
|
slot |
t | A constant from the ColorType class. |
|
read |
The colour as either an object if the colour is solid or an array of objects if it is a gradient.
For example: The solid colour red:
The gradient colour going from red to green:
|
read |
The type of colour can be: ColorType.SOLID_COLOR, ColorType.LINEAR_GRADIENT or ColorType.RADIAL_GRADIENT.