gxp.util.color
¶
The gxp.util.color
module contains color utility functions for use in
GXP applications.
Functions¶
Public functions.
-
gxp.util.color.
hex
()¶ Parameters: rgb – Array
Decimal r, g and b values of a colorReturns: String
hex value for the colorConverts rgb color values to a hex color.
-
gxp.util.color.
hsl2rgb
()¶ Parameters: hsl – Array
h, s and l color valuesReturns: Array
Decimal r, g and b values of a colorConverts hsl values to rgb values.
-
gxp.util.color.
rgb
()¶ Parameters: hex – String
A hex css color or a css color nameReturns: Array
Decimal r, g, and b values for the colorConverts a hex color or color name to rgb values.
-
gxp.util.color.
rgb2hsl
()¶ Parameters: rgb – Array
Decimal r, g and b values of a colorReturns: Array
h, s and l color valuesConverts rgb values to hsl values.