spline(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– spline(3) πŸ’–

okay bestie, welcome to the Allegro manual β€” yes, the Allegro game programming library, and yes we are about to talk about drawing a Bezier spline with four control points. it's giving math but make it cute. πŸŽ€


✨ NAME ✨

spline β€” draws a Bezier spline using four control points. part of the Allegro game programming library, periodt. πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro.h>

void spline(BITMAP *bmp, const int points[8], int color);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: spline draws a Bezier spline using the four control points you hand it in the points array. that's it, that's the whole vibe. ✨

and if you're sitting there like "bestie how do i even build that array??" β€” no worries, go read the description of calc_spline() and it will walk you through it. 🫢

not me casually dropping four control points and getting a whole smooth curve out of it 😭 iconic behavior fr fr

πŸ‘‘ SEE ALSO πŸ‘‘


and that's a wrap! this lil page came to you from Allegro, version 4.4.3, and it's literally the spline(3) page, slay. go draw something gorgeous with it πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from