.\" Automatically generated by Pandoc 3.5 .\" .TH "al_draw_ribbon" "3" "" "Allegro reference manual" .SH NAME al_draw_ribbon \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] void al_draw_ribbon(const float *points, int points_stride, ALLEGRO_COLOR color, float thickness, int num_segments) .EE .SH DESCRIPTION Draws a ribbon given an array of points. The ribbon will go through all of the passed points. The points buffer should consist of regularly spaced doublets of floats, corresponding to x and y coordinates of the vertices. .PP \f[I]Parameters:\f[R] .IP \[bu] 2 points \- An array of coordinate pairs (x and y) for each point .IP \[bu] 2 points_stride \- Distance (in bytes) between starts of successive pairs of coordinates in the points buffer .IP \[bu] 2 color \- Color of the spline .IP \[bu] 2 thickness \- Thickness of the spline, pass \f[CR]<= 0\f[R] to draw hairline spline .IP \[bu] 2 num_segments \- The number of segments .SH SEE ALSO al_calculate_ribbon(3)