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