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

# spline(3alleg)

Draws a Bezier spline using four control points. Allegro game programming library.

## NAME

spline - Draws a Bezier spline using four control points. Allegro game programming library.

## SYNOPSIS

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

**void spline(BITMAP \*bmp, const int points\[8\], int color);**

## DESCRIPTION

Draws a Bezier spline using the four control points specified in the  points array. Read the description of calc\_spline() for information on how to build the points array.

## SEE ALSO

[**calc\_spline**(3alleg)](/calc_spline/3alleg.md), [**drawing\_mode**(3alleg)](/drawing_mode/3alleg.md), [**makecol**(3alleg)](/makecol/3alleg.md), [**exspline**(3alleg)](/exspline/3alleg.md)
