summaryrefslogtreecommitdiff
path: root/internal/picker
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-11-24 04:01:37 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-11-24 04:01:37 -0500
commit8b4d17786425b63ec45f6df189eab1ea7dcbf6a7 (patch)
tree9a3142e0047dd283f4ba739ef473a0346c7599ad /internal/picker
parent84221bddb581ecdb78ba36e2cf5e61665f2be5f9 (diff)
Freaking hsl doesn't reset to cyan everytime
Diffstat (limited to 'internal/picker')
-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)
}
}