color comment

This commit is contained in:
Bernard Xie 2023-02-27 16:30:25 -08:00
parent 7c295c1942
commit 8e0feef0da
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C

View file

@ -186,7 +186,8 @@ func Hex2RGB(hex string) (RGB, error) {
return rgb, nil
}
// https://www.w3schools.com/cssref/css_colors.php
// https://www.w3.org/TR/css-color-3/#svg-color
// https://github.com/gookit/color/blob/master/convert.go#LL808C27-L808C27
var namedRgbMap = map[string][]uint8{
"aliceblue": {240, 248, 255}, // #F0F8FF
"antiquewhite": {250, 235, 215}, // #FAEBD7