Function hexToRgb

  • Split a hexadecimal value into sRGB values.

    Parameters

    • hex: number

      The hexidecimal representation of the number (i.e. 0x50c878).

    Returns Rgb

    An sRGB color.

MMNEPVFCICPMFPCPTTAAATR