Open 599316527 opened 7 years ago
toString() functions use Math.round directly to turn values into integer. But for hue, saturation, lightness, value and alpha values, decimal part are important for representing accurate colors.
toString()
Adding an option of precision will make sense.
tinycolor('#F5F405').toHslString({ precision: 4 }) === 'hsl(59.751, 96.7729%, 48.8228%)'
toString()
functions use Math.round directly to turn values into integer. But for hue, saturation, lightness, value and alpha values, decimal part are important for representing accurate colors.Adding an option of precision will make sense.