Function: hexToRgb()
hexToRgb(
hex):object
Converts a hexadecimal color code to an RGB object.
Parameters
• hex: any
The hexadecimal color code to convert.
Returns
object
An object representing the RGB values of the color, or null if the input is invalid.
b
b:
number
g
g:
number
r
r:
number