You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my opinion the current precision option in the Color.toString() method is very unintuitive.
E.g. I can have rounding issues with a low precision if my value is high. For example, a precision of 1 is not a problem when my lightness is 1%, but it is a problem when it is 95% because it would be rounded to 100%.
It would be much more intuitive if precision would dictate the amount of digits after the decimal point.
In case you disagree, coz I can imagine there's a reason for the current behaviour, can we then perhaps add a different option e.g. "decimals" to specify the amount of decimals (under the hood it would probably just do Number.toFixed(decimals))?