al_draw_spline(3)

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

πŸ’… NAME πŸ’…

al_draw_spline β€” Allegro 5 API ✨

This is a Library Functions Manual page, and the title is al_draw_spline(3). Okay so bestie, we are literally talking about drawing splines today, and it's giving graphics main character energy πŸ’….

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro_primitives.h>

void al_draw_spline(const float points[8], ALLEGRO_COLOR color, float thickness)

That's the signature, character for character, no cap.

πŸŽ€ DESCRIPTION πŸŽ€

This function draws a BΓ©zier spline given 4 control points. Yes bestie, 4 control points β€” iconic behavior only 🌈.

🌸 Parameters 🌸

  • points β€” an array of 4 pairs of coordinates of the 4 control points. That's the points[8] situation in the signature, iykyk πŸ’–.
  • color β€” color of the spline. Pick your fave and slay πŸŽ€.
  • thickness β€” thickness of the spline. Pass <= 0 to draw a hairline spline. That's the rule, periodt πŸ’….

πŸ”₯ SEE ALSO πŸ”₯


Cute sign-off: source/version is the Allegro reference manual, the date is not listed on this page, and the page title is al_draw_spline(3). Bye bestie, slay πŸ’–

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