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

# line.c(3caca)

Line drawing.

## NAME

line.c - Line drawing.

## SYNOPSIS

### Functions

void **caca\_draw\_line** (int x1, int y1, int x2, int y2, char c)\
 *Draw a line on the screen using the given character.*  void **caca\_draw\_polyline** (int const x\[\], int const y\[\], int n, char c)\
 *Draw a polyline on the screen using the given character and coordinate arrays. The first and last points are not connected, so in order to draw a polygon you need to specify the starting point at the end of the list as well.*  void **caca\_draw\_thin\_line** (int x1, int y1, int x2, int y2)\
 *Draw a thin line on the screen, using ASCII art.*  void **caca\_draw\_thin\_polyline** (int const x\[\], int const y\[\], int n)\
 *Draw a thin polyline on the screen using the given coordinate arrays and with ASCII art. The first and last points are not connected, so in order to draw a polygon you need to specify the starting point at the end of the list as well.*

## Detailed Description

**Version:**

$Id: **line.c** 219 2004-01-07 12:45:02Z sam $

**Author:**

Sam Hocevar \<sam@zoy.org\>

This file contains line and polyline drawing functions, with both thin and thick styles.

## Author

Generated automatically by Doxygen for libcaca from the source code.
