al_calculate_ribbon(3)

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

✨ NAME ✨

Okay bestie, this is the al_calculate_ribbon(3) page from the Library Functions Manual, and it’s serving pure Allegro 5 API. The function is al_calculate_ribbon, and yes, we’re about to make ribbons make sense. πŸŽ€

🌸 SYNOPSIS 🌸

Steal this exactly, bestie:

#include <allegro5/allegro_primitives.h>

void al_calculate_ribbon(float* dest, int dest_stride, const float *points,
   int points_stride, float thickness, int num_segments)

πŸ’– DESCRIPTION πŸ’–

This function calculates a ribbon given an array of points, and the ribbon goes through all of the passed points β€” not just the cute ones. ✨

If thickness <= 0, then num_segments of points are required in the destination buffer; otherwise you need twice as many. The dest and points buffers should consist of regularly spaced doublets of floats, corresponding to the x and y coordinates of the vertices. That’s the layout, no cap. πŸ’…

πŸŽ€ Parameters πŸŽ€

  • dest β€” pointer to the destination buffer.
  • dest_stride β€” distance (in bytes) between starts of successive pairs of coordinates in the destination buffer.
  • points β€” an array of pairs of coordinates for each point.
  • points_stride β€” distance (in bytes) between starts of successive pairs of coordinates in the points buffer.
  • thickness β€” thickness of the spline ribbon.
  • num_segments β€” the number of points to calculate.

πŸ¦‹ SEE ALSO πŸ¦‹

These are the friends in the group chat:


Bye bestie! πŸ’œ Source/version sign-off: the Allegro reference manual for al_calculate_ribbon(3). Date: not listed in the footer, so no fake timestamp from me β€” periodt. 🌈

πŸ“¦ 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