Function parseColor

  • Parses a color value into a HexDecimalObject representing RGB(A) values.

    Parameters

    • colorValue: string

      The color value to parse (e.g., hex, rgb, rgba string).

    Returns HexDecimalObject

    A HexDecimalObject representing the parsed RGB(A) values.

    Throws

    Error if the color value is invalid or cannot be converted.