1al_draw_ribbon(3)                                            al_draw_ribbon(3)
2
3
4

NAME

6       al_draw_ribbon - Allegro 5 API
7

SYNOPSIS

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

DESCRIPTION

15       Draws  a  ribbon  given an array of points.  The ribbon will go through
16       all of the passed points.  The points buffer should  consist  of  regu‐
17       larly  spaced  doublets of floats, corresponding to x and y coordinates
18       of the vertices.
19
20       Parameters:
21
22       · points - An array of coordinate pairs (x and y) for each point
23
24       · points_stride - Distance (in  bytes)  between  starts  of  successive
25         pairs of coordinates in the points buffer
26
27       · color - Color of the spline
28
29       · thickness  -  Thickness  of  the  spline,  pass <= 0 to draw hairline
30         spline
31
32       · num_segments - The number of segments
33

SEE ALSO

35       al_calculate_ribbon(3)
36
37
38
39Allegro reference manual                                     al_draw_ribbon(3)
Impressum