al_draw_triangle(3)
π al_draw_triangle(3) β Library Functions Manual π
okay bestie, this is the Allegro 5 API page for al_draw_triangle, straight out of the Library Functions Manual. Itβs giving βI just want the outline, not the whole filled situationβ energy. β¨
π NAME π
al_draw_triangle β Allegro 5 API π
β¨ SYNOPSIS β¨
#include <allegro5/allegro_primitives.h>
void al_draw_triangle(float x1, float y1, float x2, float y2,
float x3, float y3, ALLEGRO_COLOR color, float thickness)
π DESCRIPTION π
Draws an outlined triangle. Not filled, bestie β outlined. The edges are the main character here. πΊβ¨
π§Έ Parameters π§Έ
x1,y1,x2,y2,x3,y3β the three points of the triangle, fr fr. Three corners, six floats, no cap. πcolorβ the color of the triangle. Pick your vibe. π¨thicknessβ thickness of the lines; pass<= 0to draw hairline lines. Yes,<= 0is the hairline cheat code. πͺ‘
π SEE ALSO π
al_draw_filled_triangle(3)β for when you want the whole triangle filled in, not just the outline πal_draw_soft_triangle(3)β the soft triangle sibling, iykyk π«
kisses and solidarity from the Allegro reference manual π β source/version: Allegro reference manual + al_draw_triangle(3); date: not listed in this footer, so Iβm not making one up, bestie π
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms