fix string to rgb conversion

This commit is contained in:
Andreas Shimokawa 2019-05-28 13:42:51 +02:00
parent 5fffca7b9c
commit c484b76c40

View File

@ -105,7 +105,7 @@ func f2hsv(h, s, v float64) *HSV {
func rgb(s string) *RGB {
c := new(RGB)
fmt.Sscanf(s, "#%02x%02x%02x", c.r, c.g, c.b)
fmt.Sscanf(s, "#%02x%02x%02x", &c.r, &c.g, &c.b)
return c
}