set_color_blender(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– set_color_blender πŸ’–

okay bestie, welcome to the Allegro manual β€” yes, that Allegro, the game programming library πŸ‘‘ β€” and today's main character is set_color_blender. she's a little function with big "make my pixels look cute" energy, and we're gonna learn her fr fr. no cap. πŸŽ€


✨ NAME ✨

set_color_blender β€” enables a color blender mode πŸ¦‹

(and yeah she lives in the Allegro game programming library, she's one of those girls πŸ’…)


🌸 SYNOPSIS 🌸

#include <allegro.h>

void set_color_blender(int r, int g, int b, int a);

like. the whole vibe is right there. include the header, call the function, four ints, done. iconic. ⭐


πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea πŸ“ β€” calling set_color_blender turns on a color blender mode that's built for combining translucent or lit truecolor pixels. that's literally her whole job.

but here's the part that makes her ✨special✨ and honestly a little bit mysterious:

  • she only applies the hue and saturation of the source image to the destination image.
  • she does NOT touch the luminance of the destination image. like, not even a little. luminance stays exactly where it was, untouched, unbothered, moisturised, in her lane. πŸ™ˆ

so if you were expecting her to mess with brightness? she's not doing that. she said "i'm the color girl, not the lighting girl" and honestly? respect. πŸ’…

ngl bestie, if you need the luminance to actually do something, this is not the function for you β€” she's very clear about her boundaries.

πŸ”₯ SEE ALSO πŸ”₯

go read those too, they're her besties and they all hang out in the same group chat. 🫢


and that's the whole page, you ate it, periodt. πŸŽ€βœ¨

this lil rewrite was brought to you by Allegro, version 4.4.3, and the year it dropped β€” mwah πŸ’‹ go make something pretty with your pixels, bestie. πŸ¦‹πŸ’–

πŸ“¦ where this page comes from