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. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά