We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey all,
I am trying to create a fading transition between different images within a state machine I have. To give a watered down snip of my code, here is what I mean:
switch (pages){
case pageOne:
image(imageOne, 0, 0);
if(someCondition==true){
pages = States.pageTwo
break;
}
case pageTwo:
fill(0, 100); //this works to fade out to a black transition, but I want a crossfade into the other image.
image(imageTwo, 0, 0);
}
Answers
SOLVED: