summaryrefslogtreecommitdiff
path: root/internal/picker/picker.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/picker/picker.go')
-rw-r--r--internal/picker/picker.go5
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)
}
}