@microsoft/fast-colors > parseColorHexARGB

parseColorHexARGB() function

Converts a hexadecimal color string to a ColorRGBA64.

Signature:
export declare function parseColorHexARGB(raw: string): ColorRGBA64 | null;

Parameters

ParameterTypeDescription
rawstringa color string in the form of "#AARRGGBB" or "#ARGB"
Returns:

ColorRGBA64 | null

Example

parseColorHexRGBA("#AAFF0000");
parseColorHexRGBA("#AF00");