@microsoft/fast-colors > labToRGB
labToRGB() function
Converts a ColorLAB to a ColorRGBA64
Signature:export declare function labToRGB(lab: ColorLAB, alpha?: number): ColorRGBA64;
Parameters
Parameter | Type | Description |
---|---|---|
lab | ColorLAB | the LAB color to convert |
alpha | number | the alpha value |
Remarks
Note that the xyz color space (which the conversion from LAB uses) is significantly larger than sRGB. As such, this can return colors rgb values greater than 1 or less than 0