forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fading In and out

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
mdjenkins86



Joined: 11 Nov 2005
Posts: 8
Location: Philly

PostPosted: Tue Jan 03, 2006 8:54 pm    Post subject: Fading In and out Reply with quote

Is it possible to adjust the contrast of the screen? To the effect of fading a screen/image in or out.
Back to top
View user's profile Send private message
JoshDB



Joined: 05 Oct 2005
Posts: 87

PostPosted: Wed Jan 04, 2006 2:04 am    Post subject: Reply with quote

You should use an image that contains a full 480x272 black square, and underneath have a 100% to 0% aplha gradient. Then just lower it or raise it as needed.
Back to top
View user's profile Send private message Send e-mail AIM Address
mdjenkins86



Joined: 11 Nov 2005
Posts: 8
Location: Philly

PostPosted: Wed Jan 04, 2006 7:32 am    Post subject: Reply with quote

okay I think I got you. A png, black square 480x272 (screen}...blit that over an image with varing aplha gradients...is that it?
Back to top
View user's profile Send private message
mdjenkins86



Joined: 11 Nov 2005
Posts: 8
Location: Philly

PostPosted: Wed Jan 04, 2006 12:55 pm    Post subject: Reply with quote

Thanks Josh it works great.
Back to top
View user's profile Send private message
justatest



Joined: 19 Dec 2005
Posts: 10

PostPosted: Mon Jan 09, 2006 5:31 pm    Post subject: Reply with quote

can u post the sample code of 'aplha gradients'? i dont get the syntax usage .
Back to top
View user's profile Send private message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Mon Jan 09, 2006 7:05 pm    Post subject: Reply with quote

justatest wrote:
can u post the sample code of 'aplha gradients'? i dont get the syntax usage .

in an 8888 image (32bit)
all values are 0..255
psp's color format is 0xAABBGGRR
so you have to change value 0xAABBGGRR
to achieve blending, the stepsize depends on how fast you want to blend...

greets
lumo
_________________
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group