set_color_blender(3alleg4)
π set_color_blender β bestie edition π
okay so we're in the Allegro manual today, and the function on the slab is set_color_blender(3alleg4). Allegro game programming library, if you didn't know β now you do. π«Ά
β¨ NAME β¨
set_color_blender β it enables a color blender mode. that's the whole gig. part of the Allegro game programming library, periodt. π
π SYNOPSIS π
#include <allegro.h>
void set_color_blender(int r, int g, int b, int a);
four ints walk into a function. it's giving r, g, b, a. no cap. β¨
π¦ DESCRIPTION π¦
okay so here's the tea, bestie. calling this turns on a color blender mode, and what that mode does is combine translucent or lit truecolor pixels together. it's literally the mixing desk for your pixels. ποΈ
but here's the part you actually need to remember, and it's lowkey the main character of this whole manpage: this blender only applies the hue and saturation of the source image onto the destination image. that's it. that's the whole contribution. π
and the luminance of the destination image? untouched. not affected. it stays exactly where it was, minding its own business. so if you were expecting the brightness to move too β no ma'am, it does not. π
π SEE ALSO π
go read those next, iykyk. π
and that's the whole page, bestie!! this was Allegro version 4.4.3 doing its thing, so go forth and blend those hues and saturations with confidence. πβ¨ππ¦πΈπ π«Ά
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms