Example #1
0
func CreateColor(r, g, b, a byte) Color {
	return (Color)(C.al_map_rgba(C.uchar(r), C.uchar(g), C.uchar(b), C.uchar(a)))
}
Example #2
0
func MapRgba(r uint8, g uint8, b uint8, a uint8) *Color {
	c := C.al_map_rgba(C.uchar(r), C.uchar(g), C.uchar(b), C.uchar(a))
	return (*Color)(unsafe.Pointer(&c))
}