From 49eb9de8e634149fa604ef61d74842e0048ceb8b Mon Sep 17 00:00:00 2001 From: Thomas Friedel Date: Wed, 7 Feb 2018 12:53:14 +0100 Subject: [PATCH] bugfix for alpha in hex color strings --- color.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/color.go b/color.go index ac11657..57ae697 100644 --- a/color.go +++ b/color.go @@ -196,7 +196,7 @@ func parseColor(value ...interface{}) (c glColor, ok bool) { if !ok { return } - if len(str) == 4 { + if len(str) == 8 { ia, ok = parseHexRunePair(rune(str[6]), rune(str[7])) if !ok { return