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