Example #1
0
// Puts a pixel to the currently active bitmap
func PutPixel(x, y int, color Color) {
	C.al_put_pixel(C.int(x), C.int(y), color.toC())
}
Example #2
0
func (c Color) PutPixel(x, y int) {
	C.al_put_pixel(C.int(x), C.int(y), (C.ALLEGRO_COLOR)(c))
}
Example #3
0
func PutPixel(x, y int32, c *Color) {
	C.al_put_pixel(C.int(x), C.int(y), (C.ALLEGRO_COLOR)(*c))
}