al_calculate_ribbon(3alleg5)
π al_calculate_ribbon π
okay bestie, this is the al_calculate_ribbon page from the 3alleg5 manual, aka the Allegro 5 API, and it's literally about calculating ribbons. no cap. π¦
β¨ NAME β¨
al_calculate_ribbon β Allegro 5 API
π SYNOPSIS π
#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 πΈ
So this function calculates a ribbon given an array of points. The ribbon will go through all of the passed points. If thickness <= 0, then num_segments of points are required in the destination buffer, otherwise twice as many are needed. The destination and the points buffer should consist of regularly spaced doublets of floats, corresponding to x and y coordinates of the vertices. periodt. π
Parameters:
destβ Pointer to the destination bufferdest_strideβ Distance (in bytes) between starts of successive pairs of coordinates in the destination bufferpointsβ An array of pairs of coordinates for each pointpoints_strideβ Distance (in bytes) between starts of successive pairs of coordinates in the points bufferthicknessβ Thickness of the spline ribbonnum_segmentsβ The number of points to calculate
π SEE ALSO π
okay bestie, that's the whole vibe π source/version: Allegro reference manual, page: al_calculate_ribbon(3alleg5), date: not listed β so it's giving timeless icon behavior. byeeee π«Άβ¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms