...
Example
arrayTorgba();
arrayToHex();
rgbaToHex();
hexToRgba();
isHex();
isRGB();
Methods
-
innerarrayToHex(values){Object}
Common/Utils/ColorUtils.js, line 60 -
Converts an array ([255,255,255,1]) to #RRGGBBAA
Name Type Description values Array array of values
Returns:
and opacity formated values
-
innerarrayToRgba(values){String}
Common/Utils/ColorUtils.js, line 41 -
Converts an array ([255,255,255,1]) to rgba string
Name Type Description values Array array of values
Returns:
color of RGB or RGBA format
-
innerhexToRgba(hex, opacity){String}
Common/Utils/ColorUtils.js, line 113 -
Converts hex color and opacity value to rgba string.
(Code adapted from : http://stackoverflow.com/a/5624139)Name Type Description hex String A color value on RGB format (hexa).
opacity Number A opacity value.
Returns:
color of RGB or RGBA format
-
innerrgbaToHex(rgba){Object}
Common/Utils/ColorUtils.js, line 85 -
Converts rgba string to #RRGGBBAA
(Code adapted from : https://gist.github.com/mstssk/afda4ce9e5c335fd79cd)Name Type Description rgba String A color of RGB or RGBA format.
Returns:
and opacity formated values