---
name: "al_draw_spline"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_draw_spline"
---

# al\_draw\_spline(3)

Allegro 5 API

## NAME

al\_draw\_spline - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_primitives.h>
  void al_draw_spline(const float points[8], ALLEGRO_COLOR color, float thickness)
  ```

## DESCRIPTION

Draws a Bézier spline given 4 control points.

*Parameters:*

- •

  points - An array of 4 pairs of coordinates of the 4 control points

- •

  color - Color of the spline

- •

  thickness - Thickness of the spline, pass `<= 0` to draw a hairline spline

## SEE ALSO

[al\_calculate\_spline(3)](/al_calculate_spline/3.md)
