From c8bcf5289f1b6c364f6f0237b1bf4ccad4e1dcd2 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 24 Nov 2024 01:08:45 -0500 Subject: Improve Stringer color interfaces --- internal/colors/hsl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/colors/hsl.go') 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 { -- cgit v1.2.3