RTL Class Reference / The Color Class |
Class methods do not require an object. The method name is prefixed by the class name. Object methods require an object reference.
Name | Description |
---|---|
fromHSBA( Numeric h, Numeric s, Numeric b) |
Returns a Color object based on the specified values of hue, saturation, and brightness for the HSB color model. |
fromHSBA( Numeric h, Numeric s, Numeric b, Numeric a) |
Returns a Color object based on the specified values of hue, saturation, brightness, and alpha for the HSB color model. |
fromRGBA( Numeric r, Numeric g, Numeric b) |
Returns an opaque sRGB Color object with the specified red, green, and blue values. |
fromRGBA( Numeric r, Numeric g, Numeric b, Numeric a) |
Returns an sRGB Color object with the specified red, green, blue, and alpha values. |
Name | Description |
---|---|
brighter() |
Brightens the Color object |
darker() |
Darkens the Color object |
getAlpha() |
Returns the alpha component in the range 0-255 |
getBrightness() |
Returns the brightness value of the value in the HSB color model |
getBlue() |
Returns the blue component in the range 0-255 in the default sRGB space |
getGreen() |
Returns the green component in the range 0-255 in the default sRGB space |
getRGBA() |
Returns the RGBA value representing the color in the default sRGB color model |
getHue() |
Returns the hue value of the value in the HSB color model |
getRed() |
Returns the red component in the range 0-255 in the default sRGB space |
getSaturation() |
Returns the saturation value of the value in the HSB color model |
toString() |
Return a string representation in the form "#argb" |