line(3alleg4)

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to the line(3alleg4) page of the Allegro manual πŸ’– this one is about line β€” the function that draws a line onto the bitmap. Yes, Allegro is a whole game programming library, and yes, this tiny lil function is one of the icons of it. periodt.


✨ SYNOPSIS ✨

#include <allegro.h>

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

like, that's the whole signature, no cap 🌸


πŸ’… DESCRIPTION πŸ’…

so here's the vibe: line draws a line onto the bitmap, and it goes from point (x1, y1) all the way over to point (x2, y2). that's it. that's the function. two points, one line, main character energy πŸ‘‘

it's giving "connect the dots but make it a graphics library". iconic. truly.


πŸ¦‹ SEE ALSO πŸ¦‹

if you're obsessed (and you should be), go check out the rest of the line-up:


and that's the whole page, babe πŸ’œ this was the line(3alleg4) manual entry, living inside Allegro version 4.4.3 β€” slay, drink water, go draw some lines 🫢✨