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:rgbArray Decimal r, g and b values of a color
Returns:String hex value for the color

Converts rgb color values to a hex color.

gxp.util.color.hsl2rgb()
Parameters:hslArray h, s and l color values
Returns:Array Decimal r, g and b values of a color

Converts hsl values to rgb values.

gxp.util.color.rgb()
Parameters:hexString A hex css color or a css color name
Returns:Array Decimal r, g, and b values for the color

Converts a hex color or color name to rgb values.

gxp.util.color.rgb2hsl()
Parameters:rgbArray Decimal r, g and b values of a color
Returns:Array h, s and l color values

Converts rgb values to hsl values.