---
name: "rectfill"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rectfill/3alleg4"
---

# rectfill(3alleg4)

Draws a solid filled rectangle. Allegro game programming library.

## NAME

rectfill - Draws a solid filled rectangle. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

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

## DESCRIPTION

Draws a solid, filled rectangle with the two points as its opposite  corners.

## SEE ALSO

**rect**(3alleg4), **clear\_bitmap**(3alleg4), **drawing\_mode**(3alleg4), **makecol**(3alleg4), **exalpha**(3alleg4), **excolmap**(3alleg4), **exkeys**(3alleg4), **exmidi**(3alleg4), **expat**(3alleg4), **exscroll**(3alleg4), **exsprite**(3alleg4), **exstars**(3alleg4), **exswitch**(3alleg4), **extrans**(3alleg4)
