al_set_blend_color(3alleg5)
β¨ al_set_blend_color β¨
okay bestie, welcome to the allegro5 manual, page al_set_blend_color π β yes we're doing one single tiny function and yes it's gonna be cute.
πΈ NAME πΈ
al_set_blend_color β the Allegro 5 API, but make it one specific lil' function π
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
void al_set_blend_color(ALLEGRO_COLOR color)
like. that's it. that's the whole vibe. no cap. π
π DESCRIPTION π
okay so here's the tea β β this function sets the color that gets used for blending whenever you're rolling with the ALLEGRO_CONST_COLOR or ALLEGRO_INVERSE_CONST_COLOR blend functions. that's literally its whole job. it's giving "small but mighty" energy fr fr π₯
and if you wanna know more about how all that blending stuff actually works (the way that blending is SO much deeper than people think π), go check out al_set_blender(3alleg5) β it's the main character of this whole storyline, ngl.
so basically:
- you got a blend function that's
ALLEGRO_CONST_COLORorALLEGRO_INVERSE_CONST_COLOR? π - then this function is your girl. she sets the constant color for you. periodt. π
bestie reminder: al_set_blend_color only matters when one of those two blend functions is in play. it's not out here doing anything sneaky on its own, iykyk. π§
π SEE ALSO π
al_set_blender(3alleg5)β the one that explains all the blending lore π«al_get_blend_color(3alleg5)β the reverse uno card, so you can read the color back π«Ά
β SINCE β
5.1.12 β yeah she's been around a minute, an icon from way back π
and that's the whole page, bestie!! π this was pulled straight from the Allegro reference manual, page al_set_blend_color(3alleg5) β go forth and blend responsibly, mwah π
β¨πΈπ¦π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms