@microsoft/fast-colors > parseColorHexRGB
parseColorHexRGB() function
Converts a hexadecimal color string to a ColorRGBA64.
Signature:export declare function parseColorHexRGB(raw: string): ColorRGBA64 | null;
Parameters
Parameter | Type | Description |
---|---|---|
raw | string | a color string in the form of "#RRGGBB" or "#RGB" |
ColorRGBA64 | null
Example
parseColorHexRGBA("#FF0000");
parseColorHexRGBA("#F00");