| View previous topic :: View next topic |
| Author |
Message |
mdjenkins86
Joined: 11 Nov 2005 Posts: 8 Location: Philly
|
Posted: Tue Jan 03, 2006 8:54 pm Post subject: Fading In and out |
|
|
| Is it possible to adjust the contrast of the screen? To the effect of fading a screen/image in or out. |
|
| Back to top |
|
 |
JoshDB

Joined: 05 Oct 2005 Posts: 87
|
Posted: Wed Jan 04, 2006 2:04 am Post subject: |
|
|
| 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 |
|
 |
mdjenkins86
Joined: 11 Nov 2005 Posts: 8 Location: Philly
|
Posted: Wed Jan 04, 2006 7:32 am Post subject: |
|
|
| 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 |
|
 |
mdjenkins86
Joined: 11 Nov 2005 Posts: 8 Location: Philly
|
Posted: Wed Jan 04, 2006 12:55 pm Post subject: |
|
|
| Thanks Josh it works great. |
|
| Back to top |
|
 |
justatest
Joined: 19 Dec 2005 Posts: 10
|
Posted: Mon Jan 09, 2006 5:31 pm Post subject: |
|
|
| can u post the sample code of 'aplha gradients'? i dont get the syntax usage . |
|
| Back to top |
|
 |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Mon Jan 09, 2006 7:05 pm Post subject: |
|
|
| 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 |
|
 |
|