bugfix for alpha in hex color strings

This commit is contained in:
Thomas Friedel 2018-02-07 12:53:14 +01:00
parent 9ed7a36cbc
commit 49eb9de8e6

View file

@ -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