al_set_blend_color(3alleg5)

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

✨ 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_COLOR or ALLEGRO_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 🌈


⭐ 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