al_draw_ribbon(3)
β¨ NAME β¨
okay so this is al_draw_ribbon(3), straight out of the Library Functions Manual β aka the Allegro 5 API corner of the universe β¨ and yes bestie, it draws a ribbon.
π 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 π¦
So al_draw_ribbon draws a ribbon given an array of points, and the ribbon will go through all of the passed points. The way that works is your points buffer should consist of regularly spaced doublets of floats, corresponding to the x and y coordinates of the vertices π
Itβs giving βconnect the dots but make it fashion,β honestly.
πΈ Parameters πΈ
pointsβ an array of coordinate pairs (xandy) for each point πpoints_strideβ the distance, in bytes, between the starts of successive pairs of coordinates in thepointsbuffercolorβ color of the splinethicknessβ thickness of the spline; pass<= 0to draw a hairline splinenum_segmentsβ the number of segments
fr fr, keep an eye onthickness:<= 0is the hairline-mode moment, no cap.
π SEE ALSO π
and thatβs the whole cute little page, bestie π«Ά this sign-off is coming to you from the Allegro reference manual; no date was printed on the page, so thatβs all weβve got for the footer vibe π
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms