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

# triangle(3alleg)

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**(3alleg)](/polygon/3alleg.md), [**triangle3d**(3alleg)](/triangle3d/3alleg.md), [**drawing\_mode**(3alleg)](/drawing_mode/3alleg.md), [**makecol**(3alleg)](/makecol/3alleg.md), [**ex3buf**(3alleg)](/ex3buf/3alleg.md), [**exstars**(3alleg)](/exstars/3alleg.md), [**exupdate**(3alleg)](/exupdate/3alleg.md)
