• Converts a hex string to a color. If it can't be converted null is returned.

    Parameters

    • hex: string

      A hexadecimal color string. (i.e. #CCCCCCFF or CCCCCC)

    Returns RGBA | null