summaryrefslogtreecommitdiff
path: root/internal/colors/hsl.go
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-11-24 01:10:15 -0500
committerGitHub <noreply@github.com>2024-11-24 01:10:15 -0500
commitd92c9c601e1ef8c183562c94141db493de50921f (patch)
tree6caffa28f14f92be4711c91887c83db74f4460af /internal/colors/hsl.go
parentf66e718496fdc5c9a9bac1c281ba8e9f3f825791 (diff)
Remove useless code and implement clipboard functionality (#1)
* Remove dead code * Implement clipboard * Improve Stringer color interfaces
Diffstat (limited to 'internal/colors/hsl.go')
-rw-r--r--internal/colors/hsl.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/colors/hsl.go b/internal/colors/hsl.go
index 2a31f81..51a1785 100644
--- a/internal/colors/hsl.go
+++ b/internal/colors/hsl.go
@@ -12,7 +12,7 @@ type HSL struct {
}
func (h HSL) String() string {
- return fmt.Sprintf("hsl(%d, %d, %d)", h.H, h.S, h.L)
+ return fmt.Sprintf("hsl(%d, %d%%, %d%%)", h.H, h.S, h.L)
}
func (h HSL) ToPrecise() PreciseColor {