Telogis.GeoBase.Color |
Represents a set of color components in RGB-space, with an optional alpha-value.
Name | Description |
---|---|
Color(r, g, b, a) | Arguments
|
Name | Description |
---|---|
equals (Color other) | Determines whether the calling Color is equivalent to another, component-wise. ArgumentsReturnsBoolean - True if the components of the calling Color and given Color are equivalent; false otherwise. |
fromCSSHex (String hexString) | Initializes the color from a HTML/CSS hex string (where the first two digits represent the red value, the third and fourth the green value, and the fifth and sixth the blue value). Arguments
|
fromHSV (Number h, Number s, Number v) | Sets the RGB components of the Color from hue, saturation and value specifications. Arguments
|
toCSSHex () | Finds a representation of the color in the form of a CSS hexadecimal string. ReturnsString - A string of the form '#rrggbb'. |
toCSSRGBA () | Finds a representation of the color in the form of a CSS rgba() expression. ReturnsString - A string of the form 'rgba(r,g,b,a)'. |
Name | Type | Description |
---|---|---|
a | Number | The transparency (alpha value) of the color, from 0.0 (transparent) to 1.0 (opaque). |
b | Number | The blue component of the color, from 0x00 to 0xff. |
g | Number | The green component of the color, from 0x00 to 0xff. |
r | Number | The red component of the color, from 0x00 to 0xff. |