Hi.
Code below does exactly what I want; fading picture into almost white. However it does fade always in Java mode it does not in Android mode, better to say I've only one image that does fade in Android mode. I've checked if the pictures have an alpha channel with GIMP and they do. How to generate images that will fade? This is driving me nuts. You can download my fading image here.
Any rescue?
(int i = 255;
boolean flag1;
PImage img;
void setup() {
size (600, 600);
background(255);
img = loadImage("uyf.png");
tint(255, 255);
image(img, 0, 0);
}
void draw() {
if (flag1){
background(255);
tint(255, i);
image(img, 0, 0);
i -= 6;
if(i < 40) flag1 = false;
}
}
void mousePressed(){
flag1 = true;
}
)