Thanks for getting back, I don't want to use the mouse to change image. When the RFID is placed on the reader I want to slideshow of images to start. I found this code below that allows the images to fade, but this code has the images listed and I don't, the RFID is finding them in the data folder. How code I incorporate the transition code into my original code at the top of the page?
PImage img; PImage img1; PImage img2; PImage img3; int transparency1; int transparency2; int transparency3; void setup(){ size(640,480); transparency1 = 255; transparency2 = 0; transparency3 = 0; img = loadImage("gbr.jpg"); img1 = loadImage("gambar.jpg"); img2 = loadImage("gbr_01.jpg"); img3 = loadImage("gbr_02.jpg"); } void draw(){ background(255); tint(255,255,255,transparency1); image(img, 0, 0); if(transparency1 > 0){ transparency1--; } tint(255,255,255,255-transparency1); image(img1, 0, 0); tint(255,255,255,transparency2); image(img2, 0, 0); if((transparency1 == 0) && (transparency2 < 255)){ transparency2++; } tint(255,255,255,transparency3); image(img3, 0, 0); if((transparency2 > 0)&&(transparency2==255)){ transparency3++; } }
Cheers