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 π
polygon(3alleg4)β when one triangle isn't enough and you need the whole girl squad πtriangle3d(3alleg4)β same energy, but now with a third dimension, we love range πdrawing_mode(3alleg4)β how the drawing actually goes down, the behind-the-scenes icon π¬makecol(3alleg4)β for making thatcolorargument happen πex3buf(3alleg4)β an example, go look at it πexstars(3alleg4)β another example, stars!! βexupdate(3alleg4)β and another example, slay π
ok that's the whole page bestie, go draw something iconic π«Ά
anyway this was Allegro, version 4.4.3, triangle(3alleg4), mwah ππ bye!!
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms