al_draw_spline(3)

al_draw_spline3

Allegro 5 api

Usage

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

Overview

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

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.