Number between 0-1
Number between 0-255
Number between 0-255
Number between 0-255
toRGB
Returns as integer/ColorCode. Note this does not return an alpha value.
toHexString
Returns a hex string in #RRGGBB format.
toRGB
Returns as string in rgb(red,green,blue) format. Note this does not return an alpha value.
toRGB
Returns as string in rgba(red,green,blue,alpha) format.
Accepted formats:
#FFF = rgba(255,255,255,1)
#FFF0 = rgba(255,255,255,0)
#FFFFFF = rgba(255,255,255,1)
rgb(255,255,255) = rgba(255,255,255,1) rgba(255,255,255,1) = rgba(255,255,255,1)
If all else fails, a color map will be used to map a color string to the appropriate color.
Generated using TypeDoc