@microsoft/fast-colors > ColorLAB > roundToPrecision
ColorLAB.roundToPrecision() method
Returns a new ColorLAB rounded to the provided precision
Signature:roundToPrecision(precision: number): ColorLAB;
Parameters
Parameter | Type | Description |
---|---|---|
precision | number | the precision to round to |