diff options
Diffstat (limited to 'internal/picker/picker.go')
-rw-r--r-- | internal/picker/picker.go | 5 |
1 files changed, 5 insertions, 0 deletions
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) } } |