Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Text opacity

This thread is locked; no one can reply to it. rss feed Print
Text opacity
Travis Peterson
Member #16,756
October 2017

Well howdy

First post here.. looked all over how to adjust alpha channel on al_draw_text/al_draw_textf to make text fade to fully transparent.. Wondering if anyone knows how to adjust alpha on ALLEGRO_FONT

Preciate it

Edit::didnt mean to post twice mah b

Eric Johnson
Member #14,841
January 2013
avatar

Just decrease the alpha value in al_map_rgba over time to fade to fully transparent when drawing with al_draw_text.

--
EricII on #allegro.
My Games
Momo (my JS game-making library)

Elias
Member #358
May 2000

Or maybe even al_premul_rgba if you want to fade colored text.

--
"Either help out or stop whining" - Evert

Travis Peterson
Member #16,756
October 2017

Got it working using the al_map_rgba method appreciate the help everyone

Go to: