FunctionarrayToHex: (values: any[]) => anyFunctionarrayToRgba: (values: any[]) => stringConverts an array ([255,255,255,1]) to rgba string
arrayToRgba
Number to hex conversion
FunctionhexToRgba: (hex: string, opacity: number) => stringConverts hex color and opacity value to rgba string. (Code adapted from : http://stackoverflow.com/a/5624139)
hexToRgba
Determine if value is a correct hexa color.
Determine if value is a correct rgba color.
Hexa to number conversion
FunctionrgbaToHex: (rgba: string) => anyConverts rgba string to #RRGGBBAA (Code adapted from : https://gist.github.com/mstssk/afda4ce9e5c335fd79cd)
rgbaToHex
Converts an array ([255,255,255,1]) to #RRGGBBAA
arrayToHex