triangle(3)

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

✨ triangle(3) ✨

okay bestie, gather round, because today we're talking about triangle β€” a little function from the Allegro game programming library and honestly? it does exactly what it says on the tin. no cap. πŸ’–


🌸 NAME 🌸

triangle β€” draws a filled triangle. Allegro game programming library.

that's it. that's the whole vibe. she fills a triangle. iconic behaviour, honestly. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

so here's how you actually call her:

#include <allegro.h>

void triangle(BITMAP *bmp, int x1, y1, x2, y2, x3, y3, int color);

look at that signature. so clean. so simple. the way she just takes a BITMAP *bmp and then three whole points and a color... main character energy fr fr. ✨


πŸ’… DESCRIPTION πŸ’…

Draws a filled triangle between the three points.

that's literally it, bestie. you give her three points, she gives you a triangle, and it's filled β€” not just an outline, not a sketch, not a "we'll finish it later" situation. filled. periodt. πŸ‘‘

like... the way that you just hand over x1, y1, x2, y2, x3, y3 and she handles the rest? lowkey obsessed. 🫢


🌈 SEE ALSO 🌈

if you're in your ✨research era✨, go check out the whole friend group:

iykyk. πŸ’œ


not me writing a whole love letter to a function that fills a triangle 😭 but she earned it.

okay that's the whole page, bestie β€” this was triangle(3) from Allegro, version 4.4.3 πŸ’– slay, go draw something cute, and I'll see you in the next manpage. mwah! πŸŒΈπŸ¦‹βœ¨πŸŽ€πŸ’…

πŸ“¦ where this page comes from