---
name: "triangle"
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/triangle/3alleg4"
---

# triangle(3alleg4)

Draws a filled triangle. Allegro game programming library.

## NAME

triangle - Draws a filled triangle. Allegro game programming library.

## SYNOPSIS

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

**void triangle(BITMAP \*bmp, int x1, y1, x2, y2, x3, y3, int color);**

## DESCRIPTION

Draws a filled triangle between the three points.

## SEE ALSO

**polygon**(3alleg4), **triangle3d**(3alleg4), **drawing\_mode**(3alleg4), **makecol**(3alleg4), **ex3buf**(3alleg4), **exstars**(3alleg4), **exupdate**(3alleg4)
