Update color.go

This commit is contained in:
Bernard Xie 2023-02-27 16:22:10 -08:00
parent 6ac07a3eda
commit b48c2b411f
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C

View file

@ -337,7 +337,6 @@ var namedRgbMap = map[string][]uint8{
}
func Name2RGB(name string) RGB {
// use color name in the {namedRgbMap}
if rgb, ok := namedRgbMap[name]; ok {
return RGB{
Red: rgb[0],