set_luminance_blender(3)

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

πŸ’– set_luminance_blender(3) πŸ’–

okay bestie, sit DOWN, because we're talking about set_luminance_blender β€” straight out of the Allegro manual, aka the Allegro game programming library. this one's a little legend and she's about to change your whole lighting game, no cap ✨


🌸 NAME 🌸

set_luminance_blender β€” enables a luminance blender mode. like, that's the whole job. Allegro game programming library, mwah πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

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

look at her. four little ints. r, g, b, and a. iconic behavior fr fr 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually DO? she enables a luminance blender mode β€” specifically for combining translucent or lit truecolor pixels. think glow-ups, think mood lighting, think your sprites catching feelings and light at the same time 😭

here's the tea: it applies the luminance of the source to the destination. and the part everyone asks about β€” the colour of the destination is not affected πŸŽ€

read that again. the destination keeps its own colour. we're only moving the brightness around. it's giving spotlight, not paint bucket. periodt πŸ’…


🌈 SEE ALSO 🌈


ngl if you're out here doing lit truecolor pixel stuff, this is your girl. go off 🧚

and that's the whole page, bestie!! πŸ’– brought to you by the Allegro manual, version 4.4.3 β€” yes, 4.4.3, she's a classic, she ate and left no crumbs. go make something gorgeous with your luminance πŸŒΈβœ¨πŸ‘‘

πŸ“¦ where this page comes from