fastline(3)

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

✨ NAME ✨

okay bestie, welcome to fastline(3) β€” this is straight out of the Allegro manual, the game programming library that's been holding it down since forever πŸŽ€

fastline β€” it's the faster version of line(). that's the whole vibe. Allegro game programming library, periodt πŸ’…


🌸 SYNOPSIS 🌸

like, this is literally how you summon it:

#include <allegro.h>

void fastline(BITMAP *bmp, int x1, int y1, int x2, int y2, int color);

no cap, that's the whole signature. BITMAP *bmp, then your two points x1, y1 and x2, y2, then the color. iconic ✨


πŸ’– DESCRIPTION πŸ’–

so here's the tea, bestie πŸ«– β€” fastline is the faster version of the previous function. same energy, more speed, less waiting around.

but bestie… listen. 🚨 pixel correctness is NOT guaranteed for this function. 🚨

like, it's giving speed over perfection. it will draw you a line, it will draw it fast, but it is not out here promising that every single pixel lands exactly where a pedantic little perfectionist would put it. so if you need your pixels to be exactly right, this is not the one β€” go talk to the slower, more careful function. if you just want a line and you want it now, fastline ate and left no crumbs πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, go say hi πŸ‘‘:


and that's the page, bestie πŸ’œ this one comes to you from Allegro version 4.4.3, and yeah, fastline(3) β€” that's the whole manual page, start to finish. now go draw something fast and slightly imperfect, it's giving main character energy πŸŒˆπŸ¦‹βœ¨

πŸ“¦ where this page comes from