w3 official source

This commit is contained in:
Bernard Xie 2023-02-27 16:38:48 -08:00
parent 2fb0df3563
commit 3427ea1717
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C

View file

@ -186,7 +186,7 @@ func Hex2RGB(hex string) (RGB, error) {
return rgb, nil return rgb, nil
} }
// https://developer.mozilla.org/en-US/docs/Web/CSS/named-color // https://www.w3.org/TR/css-color-4/#svg-color
var namedRgbMap = map[string][]uint8{ var namedRgbMap = map[string][]uint8{
"aliceblue": {240, 248, 255}, // #F0F8FF "aliceblue": {240, 248, 255}, // #F0F8FF
"antiquewhite": {250, 235, 215}, // #FAEBD7 "antiquewhite": {250, 235, 215}, // #FAEBD7