SYNOPSIS

  • #include <allegro5/allegro_primitives.h>
    
    void al_draw_ribbon(const float *points, int points_stride, ALLEGRO_COLOR color,
       float thickness, int num_segments)
    
    

DESCRIPTION

Draws a series of straight lines given an array of points. The ribbon will go through all of the passed points.

Parameters:

\[bu]

points - An array of coordinate pairs (x and y) for each point

\[bu]

color - Color of the spline

\[bu]

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

RELATED TO al_draw_ribbon…

al_calculate_ribbon(3alleg5)