Skip to main content

CommonColorTrimAlpha

Callable

  • CommonColorTrimAlpha(color: `#${string}`): `#${string}`

  • Remove the (potential present) alpha component of the passed color hex code, turning the likes of RRGGBB(AA) into RRGGBB.


    Parameters

    • color: `#${string}`

      The color hex code

    Returns `#${string}`

    The color hex code with its (potentially present) alpha component removed