---
name: "triangle.c"
section: "3caca"
platform: "linux"
package: "libcaca-dev"
version: "0.9-4"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/triangle.c"
---

# triangle.c(3caca)

Triangle drawing.

## NAME

triangle.c - Triangle drawing.

## SYNOPSIS

### Functions

void **caca\_draw\_triangle** (int x1, int y1, int x2, int y2, int x3, int y3, char c)\
 *Draw a triangle on the screen using the given character.*  void **caca\_draw\_thin\_triangle** (int x1, int y1, int x2, int y2, int x3, int y3)\
 *Draw a thin triangle on the screen.*  void **caca\_fill\_triangle** (int x1, int y1, int x2, int y2, int x3, int y3, char c)\
 *Fill a triangle on the screen using the given character.*

## Detailed Description

**Version:**

$Id: **triangle.c** 195 2003-12-31 14:21:08Z sam $

**Author:**

Sam Hocevar \<sam@zoy.org\>

This file contains triangle drawing functions, both filled and outline.

## Author

Generated automatically by Doxygen for libcaca from the source code.
