We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Fading between images
Page Index Toggle Pages: 1
Fading between images (Read 1056 times)
Fading between images
Sep 7th, 2005, 5:47pm
 
Hi all.

Im a processing newbie. Im working on an app that includes a mini slide show type thing and Im trying to fade in/out and between images. Anybody have demo code for something like that?

-jonathan
Re: Fading between images
Reply #1 - Sep 8th, 2005, 12:00pm
 
There was already a post on this sort of thing. You want to use the forum search to see what solutions people have come up with before. But I don't mind posting the code again:
Code:

PImage one,two;
void setup(){
size(640,480,P3D);
one = loadImage("trippybobo.jpg");
two = loadImage("glowbobo.jpg");
}
void draw(){
background(one);
tint(255,255,255,(255.0/width)*mouseX);
image(two,0,0);
}

Wink
Re: Fading between images
Reply #2 - Sep 8th, 2005, 7:01pm
 
Thanks! Sorry I must have missed this on the search...
Page Index Toggle Pages: 1