From 8b4d17786425b63ec45f6df189eab1ea7dcbf6a7 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 24 Nov 2024 04:01:37 -0500 Subject: Freaking hsl doesn't reset to cyan everytime --- internal/picker/picker.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/picker/picker.go') diff --git a/internal/picker/picker.go b/internal/picker/picker.go index 13b04a5..14ada59 100644 --- a/internal/picker/picker.go +++ b/internal/picker/picker.go @@ -91,6 +91,11 @@ func (m Model) SetColor(c colors.ColorSpace) { m.sliders[1].Set(cmyk.M) m.sliders[2].Set(cmyk.Y) m.sliders[3].Set(cmyk.K) + case "HSL": + hsl := colors.HSL{}.FromPrecise(p).(colors.HSL) + m.sliders[0].Set(hsl.H) + m.sliders[1].Set(hsl.S) + m.sliders[2].Set(hsl.L) } } -- cgit v1.2.3