DOKK / manpages / debian 12 / allegro4-doc / putpixel.3alleg4.en
putpixel(3alleg4) Allegro manual putpixel(3alleg4)

putpixel - Writes a pixel into a bitmap. Allegro game programming library.

#include <allegro.h>

void putpixel(BITMAP *bmp, int x, int y, int color);

Writes a pixel to the specified position in the bitmap, using the current drawing mode and the bitmap's clipping rectangle. Example:


putpixel(screen, 10, 30, some_color);

getpixel(3alleg4), _putpixel(3alleg4), drawing_mode(3alleg4), makecol(3alleg4), ex12bit(3alleg4), exalpha(3alleg4), exflame(3alleg4), exjoy(3alleg4), exstars(3alleg4), exswitch(3alleg4)

version 4.4.3 Allegro