|
How to draw transparency text |
JurekGP
Member #15,891
February 2015
|
I want to draw my text as an animation from total transparency to normal look text. I tried like that: Hi! I'm Pole and my english is not very well. So, please understanding to me. :) |
Edgar Reynaldo
Major Reynaldo
May 2007
|
It depends on the blender in use. The default blender is the pre-multiplied alpha blender, which expects pre-multiplied alpha values to be passed to it, for example 100%translucent would be al_map_rgba(0,0,0,0) - because you need to multiply the color values by the alpha values. Ie - al_map_rgba((r*a)/255 , (g*a)/255 , (b*a)/255 , a) My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
JurekGP
Member #15,891
February 2015
|
It works, thank you! By the way I ask for this about bitmap. Does exist any method to draw bitmap like that? Hi! I'm Pole and my english is not very well. So, please understanding to me. :) |
Edgar Reynaldo
Major Reynaldo
May 2007
|
You can do the same thing with bitmaps with My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
JurekGP
Member #15,891
February 2015
|
You're right again, thanks Hi! I'm Pole and my english is not very well. So, please understanding to me. :) |
|