ColorToInt() comment updated
This commit is contained in:
parent
36259e95a7
commit
090dbf62ef
2 changed files with 2 additions and 2 deletions
|
@ -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)))
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue