---
name: "rect"
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/rect/3alleg"
---

# rect(3alleg)

Draws an outline rectangle. Allegro game programming library.

## NAME

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

## SYNOPSIS

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

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

## DESCRIPTION

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

## SEE ALSO

[**rectfill**(3alleg)](/rectfill/3alleg.md), [**drawing\_mode**(3alleg)](/drawing_mode/3alleg.md), [**makecol**(3alleg)](/makecol/3alleg.md), [**ex3d**(3alleg)](/ex3d/3alleg.md), [**excamera**(3alleg)](/excamera/3alleg.md)
