Function hexColorToRgb

  • Returns the specified #hex color to RGB. RR (red), GG (green) and BB (blue) are hexadecimal integers between 00 and FF specifying the intensity of the color.

    Parameters

    • hex: string

      The hex color on the format #RRGGBB

    • Optional fallbackRgbColor: Rgb

      Optional fallback color if the hex argument is invalid

    Returns Rgb | undefined

    The color in RGB format. Returns the fallbackHexColor of invalid hex, which defaults to undefined

    See

    Url

Generated using TypeDoc