triangle(3alleg4)

πŸ’– triangle β€” the manual page, but make it cute πŸ’–

okay so bestie, you're in the Allegro manual (that's the 3alleg4 one, iykyk) and today's main character is literally triangle. buckle up πŸŽ€


✨ NAME ✨

triangle β€” draws a filled triangle. it's giving Allegro game programming library energy πŸ‘‘


🌸 SYNOPSIS 🌸

#include <allegro.h>

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

look at her. six ints, one BITMAP, one color. she's not complicated, she's just that girl πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically? it draws a filled triangle between the three points. that's it. that's the whole vibe. you hand it a bmp, you hand it three points, you hand it a color, and a triangle just materialises. no cap. πŸ”₯

not an outline, not a sketch, not a lil ghost of a triangle β€” FILLED. the whole inside is coloured in. periodt. ✨


πŸ’œ SEE ALSO πŸ’œ


ok that's the whole page bestie, go draw something iconic 🫢

anyway this was Allegro, version 4.4.3, triangle(3alleg4), mwah πŸ˜­πŸ’– bye!!