summaryrefslogtreecommitdiff
path: root/internal/colors
diff options
context:
space:
mode:
Diffstat (limited to 'internal/colors')
-rw-r--r--internal/colors/cmyk.go2
-rw-r--r--internal/colors/hsl.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/colors/cmyk.go b/internal/colors/cmyk.go
index b5ef223..30bc290 100644
--- a/internal/colors/cmyk.go
+++ b/internal/colors/cmyk.go
@@ -13,7 +13,7 @@ type CMYK struct {
}
func (c CMYK) String() string {
- return fmt.Sprintf("cmyk(%d, %d, %d, %d)", c.C, c.M, c.Y, c.K)
+ return fmt.Sprintf("cmyk(%d%%, %d%%, %d%%, %d%%)", c.C, c.M, c.Y, c.K)
}
func (c CMYK) ToPrecise() PreciseColor {
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 {