SYNOPSIS

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

DESCRIPTION

Draws a Bézier spline given 4 control points.

Parameters:

\[bu]

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

\[bu]

color - Color of the spline

\[bu]

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

RELATED TO al_draw_spline…

al_calculate_spline(3alleg5)