@microsoft/fast-colors > parseColor
parseColor() function
Expects any of the following and attempts to determine which is being used #RRGGBB, #AARRGGBB, rgb(RR,GG,BB) rgba(RR,GG,BB,a), or any of the CSS color names.
Signature:export declare function parseColor(raw: string): ColorRGBA64 | null;
Parameters
Parameter | Type | Description |
---|---|---|
raw | string | the color string to parse |
ColorRGBA64 | null