al_draw_spline(3)
π 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 thepoints[8]situation in the signature, iykyk π.colorβ color of the spline. Pick your fave and slay π.thicknessβ thickness of the spline. Pass<= 0to draw a hairline spline. That's the rule, periodt π .
π₯ SEE ALSO π₯
al_calculate_spline(3)β bestie, go check that one too π.
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