diff --git a/raylib/raylib_purego.go b/raylib/raylib_purego.go index aa78ce4..5c584e3 100644 --- a/raylib/raylib_purego.go +++ b/raylib/raylib_purego.go @@ -2896,7 +2896,7 @@ func Fade(col color.RGBA, alpha float32) color.RGBA { 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 { return colorToInt(*(*uintptr)(unsafe.Pointer(&col))) } diff --git a/raylib/rcore.go b/raylib/rcore.go index daebe18..e46215d 100644 --- a/raylib/rcore.go +++ b/raylib/rcore.go @@ -765,7 +765,7 @@ func Fade(col color.RGBA, alpha float32) color.RGBA { return v } -// ColorToInt - Returns hexadecimal value for a Color +// ColorToInt - Get hexadecimal value for a Color (0xRRGGBBAA) func ColorToInt(col color.RGBA) int32 { ccolor := colorCptr(col) ret := C.ColorToInt(*ccolor)