• Extracts the alpha value from a hexadecimal color code.

    Parameters

    • hex: string

      The hexadecimal color code (e.g. '#AARRGGBB', '#RRGGBB')

    Returns number

    The alpha value as a decimal number (e.g. 0.5, 1, 0)

    0.11.0