DOKK / manpages / debian 10 / allegro4-doc / rect.3alleg4.en
rect(3alleg4) Allegro manual rect(3alleg4)

rect - Draws an outline rectangle. Allegro game programming library.

#include <allegro.h>

void rect(BITMAP *bmp, int x1, int y1, int x2, int y2, int color);

Draws an outline rectangle with the two points as its opposite corners.

rectfill(3alleg4), drawing_mode(3alleg4), makecol(3alleg4), ex3d(3alleg4), excamera(3alleg4)

version 4.4.2 Allegro