...
Example
rgbaToHex();
hexToRgba();
isHex();
isRGB();
Methods
-
innerhexToRgba(hex, opacity){String}
Common/Utils/ColorUtils.js, line 50 -
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 14 -
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