exblend(3)
π exblend β bestie's guide to truecolor translucency π
okay so this is from the Allegro manual, page exblend(3), and it's literally an example program from the Allegro game programming library. sit down, grab a boba, we're doing transparency today β¨
πΈ NAME πΈ
exblend β using translucency in truecolor modes. it's an Allegro game programming library thing, and yes it's giving main character energy π
β¨ SYNOPSIS β¨
#include <allegro.h>
Example exblend
no cap, that's the whole vibe. include the header, run the example π«Ά
π¦ DESCRIPTION π¦
so here's the tea, bestie: this program demonstrates how to use the translucency functions in truecolor video modes. iconic behaviour honestly.
two image files are loaded from disk and displayed moving slowly around the screen. lowkey hypnotic. π
- one of the images will be tinted to different colors π¨
- the other image will be faded out with a varying alpha strength, and drawn on top of the other image β¨
so you get one pic going through its color era while the other one gets progressively more see-through and layered on top. it's giving ghosting but in a cute, intentional, graphics-programming way ππ
π SEE ALSO π
the whole friend group showed up for this one, fr fr:
BITMAP(3)END_OF_MAIN(3)PALETTE(3)SCREEN_H(3)SCREEN_W(3)allegro_error(3)allegro_init(3)allegro_message(3)blit(3)circle(3)clear_bitmap(3)clear_keybuf(3)create_bitmap(3)destroy_bitmap(3)draw_lit_sprite(3)draw_trans_sprite(3)fixcos(3)fixsin(3)fixtoi(3)font(3)install_keyboard(3)install_timer(3)itofix(3)keypressed(3)load_bitmap(3)makecol(3)replace_filename(3)retrace_count(3)screen(3)set_color_conversion(3)set_color_depth(3)set_gfx_mode(3)set_trans_blender(3)textprintf_ex(3)vsync(3)
that's the whole page, bestie. no notes. go blend something translucent and slay π
this little love letter to transparency is brought to you by Allegro, version 4.4.3 π and the page is exblend(3) β mwah, bye! ππ¦β¨
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms