ColorToInt() comment updated

This commit is contained in:
JupiterRider 2024-11-24 14:49:41 +01:00
parent 36259e95a7
commit 090dbf62ef
2 changed files with 2 additions and 2 deletions

View file

@ -2896,7 +2896,7 @@ func Fade(col color.RGBA, alpha float32) color.RGBA {
return *(*color.RGBA)(unsafe.Pointer(&ret)) return *(*color.RGBA)(unsafe.Pointer(&ret))
} }
// ColorToInt - Get hexadecimal value for a Color // ColorToInt - Get hexadecimal value for a Color (0xRRGGBBAA)
func ColorToInt(col color.RGBA) int32 { func ColorToInt(col color.RGBA) int32 {
return colorToInt(*(*uintptr)(unsafe.Pointer(&col))) return colorToInt(*(*uintptr)(unsafe.Pointer(&col)))
} }

View file

@ -765,7 +765,7 @@ func Fade(col color.RGBA, alpha float32) color.RGBA {
return v return v
} }
// ColorToInt - Returns hexadecimal value for a Color // ColorToInt - Get hexadecimal value for a Color (0xRRGGBBAA)
func ColorToInt(col color.RGBA) int32 { func ColorToInt(col color.RGBA) int32 {
ccolor := colorCptr(col) ccolor := colorCptr(col)
ret := C.ColorToInt(*ccolor) ret := C.ColorToInt(*ccolor)