From 3a94226aa83deb489a34eb6dc6e63fdc4520cd02 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Thu, 5 Mar 2020 20:21:18 -0600 Subject: [PATCH] fix float format string --- color.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/color.go b/color.go index 42498dc..6c4a03a 100644 --- a/color.go +++ b/color.go @@ -65,7 +65,7 @@ func (c RGBColor) Hex() string { func (c HSBKColor) ColorString() string { var s []string if c.H >= 0 { - s = append(s, fmt.Sprintf("hue:%f", c.H)) + s = append(s, fmt.Sprintf("hue:%g", c.H)) } if c.S >= 0 { s = append(s, fmt.Sprintf("saturation:%g", c.S))