al_draw_ribbon(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

✨ 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 (x and y) for each point πŸ’–
  • points_stride β€” the distance, in bytes, between the starts of successive pairs of coordinates in the points buffer
  • color β€” color of the spline
  • thickness β€” thickness of the spline; pass <= 0 to draw a hairline spline
  • num_segments β€” the number of segments
fr fr, keep an eye on thickness: <= 0 is 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