set_burn_blender(3alleg4)

set_burn_blender πŸ’…βœ¨

okay bestie, we're in the Allegro manual, page set_burn_blender(3alleg4), and this one is lowkey iconic β€” it's the burn blender, the one that makes things go dark and moody on purpose. no cap. πŸŽ€


✨ NAME ✨

set_burn_blender β€” enables a burn blender mode. part of the Allegro game programming library, bestie. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <allegro.h>

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

like, four little ints. r, g, b, a. that's the whole vibe. 🫢


πŸ’– DESCRIPTION πŸ’–

so what this does is it enables a burn blender mode β€” and that blender mode is for combining translucent or lit truecolor pixels. 🎨

here's the tea: the lightness values of the colours of the source image reduce the lightness of the destination image, which darkens the image. so it's giving "burn" fr fr β€” light stuff burns away the light underneath. the brighter the source, the darker the destination ends up. periodt. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’€ reminder bestie: set_burn_blender takes int r, int g, int b, int a β€” don't skip the alpha, she's part of the friend group too. πŸ™ˆ

and that's the whole page, no crumbs left. this came to you straight from the Allegro manual, version 4.4.3, under the name set_burn_blender(3alleg4) β€” go forth and darken some pixels, you absolute main character. πŸ’œπŸŒˆβ­