create_blender_table(3)

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

πŸ’… create_blender_table(3) πŸ’…

okay bestie, welcome to the Allegro manual ✨ this one's called create_blender_table, and it is literally the glow-up your paletted modes have been waiting for 🫢


🌸 NAME 🌸

create_blender_table β€” emulates truecolor blender effects in paletted modes. Allegro game programming library. no cap, that's the whole vibe πŸ’–


✨ SYNOPSIS ✨

#include <allegro.h>

void create_blender_table(COLOR_MAP *table, const PALETTE pal, void
(*callback)(int pos));

like… three args, one function, zero drama πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• this function fills the specified color mapping table with lookup data for doing a paletted equivalent of whatever truecolor blender mode is currently selected. it's giving translation layer, it's giving budget 24-bit in an 8-bit world 😭

after you call set_trans_blender(), set_blender_mode(), or any of the other truecolor blender mode routines, you can use this function to create an 8-bit mapping table that will have the same results as whatever 24-bit blending mode you have enabled. main character energy fr fr πŸ‘‘

so like: set your blender mode, then call this, and boom β€” your paletted mode is serving the same looks as truecolor. iconic. no notes. 🌈


πŸ‘€ SEE ALSO πŸ‘€

go read those too, bestie, it's a whole ecosystem πŸ’œ


kisses, and remember: this page came from the Allegro crew, version 4.4.3 β€” mwah πŸ’‹ πŸŽ€

πŸ“¦ where this page comes from