Update color.go

This commit is contained in:
Chris 2023-08-26 21:37:33 -04:00 committed by Garrett D'Amore
parent 61f49ebde1
commit 08c7757cd1
1 changed files with 1 additions and 1 deletions

View File

@ -1036,7 +1036,7 @@ func (c Color) Name(css ...bool) string {
} }
// Hex returns the color's hexadecimal RGB 24-bit value with each component // Hex returns the color's hexadecimal RGB 24-bit value with each component
// consisting of a single byte, ala R << 16 | G << 8 | B. If the color // consisting of a single byte, R << 16 | G << 8 | B. If the color
// is unknown or unset, -1 is returned. // is unknown or unset, -1 is returned.
func (c Color) Hex() int32 { func (c Color) Hex() int32 {
if !c.Valid() { if !c.Valid() {