al_draw_filled_triangle(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

al_draw_filled_triangle β€” bestie, this is the Allegro 5 API function that draws a filled triangle. periodt πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_primitives.h>

void al_draw_filled_triangle(float x1, float y1, float x2, float y2,
   float x3, float y3, ALLEGRO_COLOR color)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so literally what it does: draws a filled triangle. that's the whole vibe. no cap ✨

Parameters? gotchu, bestie:

  • x1, y1, x2, y2, x3, y3 β€” three points of the triangle. three little coordinate besties making one iconic shape πŸŽ€
  • color β€” color of the triangle. the lewk, the aesthetic, the moment πŸ’œ

πŸ‘‘ SEE ALSO πŸ‘‘

if you want the non-filled sibling, go peek at al_draw_triangle(3alleg5). iykyk 🫢


source/version vibe: Allegro reference manual, and the page tag is al_draw_filled_triangle(3alleg5). bye bestie, go draw some triangles πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from