al_calculate_ribbon(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸŽ€ 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 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 🌈


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