Alpha Blit

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Mr Billy
Posts: 10
Joined: Wed Oct 26, 2005 10:13 am

Alpha Blit

Post by Mr Billy »

is there a way to blit using alphatransparency. i mean if i had a fully opaque image and i wanted to blit it at 50% transparency. is this possible without making a function to redraw the image pixel by pixel?
"There is no spoone"
-The Matricks
Durante
Posts: 65
Joined: Sun Oct 02, 2005 6:07 am
Location: Austria

Post by Durante »

Mr Billy
Posts: 10
Joined: Wed Oct 26, 2005 10:13 am

Post by Mr Billy »

thanks for the reply

i read that topic, but i still really dont understand how this is done. i have a 100% opaque image and i want to blit it at a % transparency. i would make the png transparent to begin with, but i want the transparency to change frequently throughout my program.
"There is no spoone"
-The Matricks
Durante
Posts: 65
Joined: Sun Oct 02, 2005 6:07 am
Location: Austria

Post by Durante »

That's another question entirely. My version of Luaplayer (used in Crystalise) does this by providing a screen.setTint(color) method. In normal luaplayer this is not currently possible, except if you use the 3D API.
Post Reply