Fading images

Hi,

I have a screen surface which I want to fade between the current colours, and a darker (or maybe lighter) colour to give the appearance of “fading” in and out. Has anyone done this under SDL and if so, how did you do it?

The only way I can think is to have 2 buffers/surfaces of the colour value of every pixel (1=backup and 2=adjustable) and just alter the value and reblit the entire screen?

Is that the best way? I have a feeling it will be slow…

Many Thanks
Ed___________________________________________________________
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk