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