diff --git a/playground/app/pages/components/color-picker.vue b/playground/app/pages/components/color-picker.vue index b6030162..0fb1b88e 100644 --- a/playground/app/pages/components/color-picker.vue +++ b/playground/app/pages/components/color-picker.vue @@ -1,12 +1,16 @@ diff --git a/src/runtime/components/ColorPicker.vue b/src/runtime/components/ColorPicker.vue index e7f7f443..4b724ed1 100644 --- a/src/runtime/components/ColorPicker.vue +++ b/src/runtime/components/ColorPicker.vue @@ -31,7 +31,7 @@ function HSVtoHSL(hsv: HSVColor): HSLObject { return { H: hsv.h, S: x === 0 || x === 200 ? 0 : Math.round(hsv.s * hsv.v / (x <= 100 ? x : 200 - x)), - L: Math.round(x / 2) + L: x / 2 } } @@ -102,7 +102,6 @@ const pickedColor = computed({ }, set(value) { const color = new ColorTranslator(HSVtoHSL(value), { - decimals: 2, labUnit: 'percent', cmykUnit: 'percent', cmykFunction: 'cmyk'