from Hex String
Return
color represented by hex string
Parameters
hex String
representing hex value (formatted "0xRRGGBB" i.e. "0xFFFFFF") OR formatted "0xAARRGGBB" i.e. "0x00FFFFFF" for a color with an alpha value I will also put up with "RRGGBB" and "AARRGGBB" without the starting "0x"
argb
If true use #AARRGGBB sequence, otherwise use #RRGGBBAA