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

# vline(3alleg4)

Draws a vertical line onto the bitmap. Allegro game programming library.

## NAME

vline - Draws a vertical line onto the bitmap. Allegro game programming library.

## SYNOPSIS

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

**void vline(BITMAP \*bmp, int x, int y1, int y2, int color);**

## DESCRIPTION

Draws a vertical line onto the bitmap, from point (x, y1) to (x, y2).

Note: vline() is implemented as an alias to another function. See ALLEGRO\_NO\_VHLINE\_ALIAS in the \`Differences between platforms' section for details.

## SEE ALSO

**hline**(3alleg4), **line**(3alleg4), **drawing\_mode**(3alleg4), **makecol**(3alleg4), **exrgbhsv**(3alleg4), **exscroll**(3alleg4), **extruec**(3alleg4)
