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