Computer Science Canada

Image Fading

Author:  Martin [ Tue Apr 22, 2003 3:28 pm ]
Post subject:  Image Fading

Anyone know how to fade an image into another image?

Author:  Catalyst [ Tue Apr 22, 2003 3:50 pm ]
Post subject: 

yes i do, the pic flashlight in source that i made should help, it has some algorithms for blending colors at a certain % (the algorithms are imbedded in the prog tho) unless you make a prog that precalcs or composes the images for u it might be slow. U could always try with smaller images tho

Author:  Tony [ Tue Apr 22, 2003 6:02 pm ]
Post subject: 

well (0,0,0) is black, right? So you just do RGB what color (or something) for each pixel and reduce its values closer to pure black, keeping the ratios the same though.

Author:  Catalyst [ Tue Apr 22, 2003 6:03 pm ]
Post subject: 

he want to fade to another image, not just black (i assume he also doesnt want to fade from the image to black to another image)

Author:  Tony [ Tue Apr 22, 2003 6:08 pm ]
Post subject: 

ah, yes... sorry, I was thinking of something else...

but its the same... just gradually move from one RGB value to the next. Find the difference between each of 3 colors, divide that by number of steps you want to take to fade and increase RGB by that each time through the loop. Same as to black really

Author:  Martin [ Tue Apr 22, 2003 6:53 pm ]
Post subject: 

Thanks guys, I think I can get this to work...making a crazy menu system for my end of the year project


: