Function parseColor

  • Given a string representing a color name (e.g., blue, red), hex (e.g., #aabbcc), or rgb[a] (e.g., rgba(12, 34, 56, 0.5)), return an RGBA of that value

    Parameters

    • color: string | RGBA

    Returns Readonly<RGBA>