---
name: "rectfill"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/rectfill"
---

# rectfill(3alleg)

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**(3alleg)](/rect/3alleg.md), [**clear\_bitmap**(3alleg)](/clear_bitmap/3alleg.md), [**drawing\_mode**(3alleg)](/drawing_mode/3alleg.md), [**makecol**(3alleg)](/makecol/3alleg.md), [**exalpha**(3alleg)](/exalpha/3alleg.md), [**excolmap**(3alleg)](/excolmap/3alleg.md), [**exkeys**(3alleg)](/exkeys/3alleg.md), [**exmidi**(3alleg)](/exmidi/3alleg.md), [**expat**(3alleg)](/expat/3alleg.md), [**exscroll**(3alleg)](/exscroll/3alleg.md), [**exsprite**(3alleg)](/exsprite/3alleg.md), [**exstars**(3alleg)](/exstars/3alleg.md), [**exswitch**(3alleg)](/exswitch/3alleg.md), [**extrans**(3alleg)](/extrans/3alleg.md)
