Converts a hex number/string representing a color to an RGB tuple.
toRGBTuple('#fff') // Returns '[255, 255, 255]'toRGBTuple('0x000', '0x') // Returns '[0, 0, 0]' Copy
toRGBTuple('#fff') // Returns '[255, 255, 255]'toRGBTuple('0x000', '0x') // Returns '[0, 0, 0]'
Hex number/string representing a color.
Prefix of hex if using a string.
RGB tuple in the format of [r, g, b].
[r, g, b]
Converts a hex number/string representing a color to an RGB tuple.
Example