Namespace: PP;
Color
The Color class is used to work with color parameters.
PP.initClass(PP.Color, PP.Object, "Color");
Constructor name | Brief description | |
Color | The Color constructor creates an instance of the Color class. |
Property name | Brief description | |
A | The A property determines the color transparency from 0 to 255. | |
B | The B property sets the blue color component from 0 to 255. | |
G | The G property sets green color component from 0 to 255. | |
H | The H property sets color hue in degrees from 0.0 to 360.0. | |
R | The R property sets the red color component from 0 to 255. | |
S | The S property sets the color saturation from 0 to 100. | |
V | The V property sets the color brightness from 0 to 100. |
Method name | Brief description | |
applyMatrix | The applyMatrix method applies a color bubble chart. | |
brighten | The brighten method changes color saturation. | |
darken | The darken method darkens color for the specified transparency value. | |
The getOpacity method returns transparency of the color from 0 to 1. | ||
The initByColor method applies the color specified in parameters to the current one. | ||
isEqual | The isEqual method compares two colors. | |
toDecimalString | The toDecimalString method returns the string that contains color value in RGB/RGBA format. | |
toString | The toString method returns the string with the string with the color value in the hexadecimal format with the grid value in the beginning. | |
toStringDelAlpha | The toStringDelAlpha method returns the string with the color value, taking into account transparency, in the hexadecimal format with the grid value in the beginning. |
Property name | Brief description | |
Data | The Data property associates a random object with this component. | |
Id | The Id property sets component identifier. | |
Settings | The Settings property sets the component parameters. |
Method name | Brief description | |
clone | The clone method creates a copy of object. It is not implemented in PP.Ui.Control. | |
dispose | The dispose method deletes the component. | |
getTypeName | The getTypeName method returns the name of the object type without the namespace, to which it belongs. |