@microsoft/fast-colors > parseColorWebRGB
parseColorWebRGB() function
Converts a rgb color string to a ColorRGBA64.
Signature:export declare function parseColorWebRGB(raw: string): ColorRGBA64 | null;
Parameters
Parameter | Type | Description |
---|---|---|
raw | string | a color string format "rgba(RR,GG,BB)" where RR,GG,BB are [0,255] |
ColorRGBA64 | null
Example
parseColorWebRGB("rgba(255, 0, 0");