Function hexToRgb

  • Split a hexadecimal value into sRGB values.

    Parameters

    • hex: number

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

    Returns Rgb

    R, G, and B sRGB values (each in the range [0x00,0xff]), in that order.