int IMGHEIGHT; int IMGWIDTH; PImage[] images = new PImage[7]; PImage blend; int c; int i; int iterations; int pics; void setup() { IMGHEIGHT=450; IMGWIDTH=450; images[0] = loadImage("1.jpg"); images[1] = loadImage("2.jpg"); images[2] = loadImage("3.jpg"); images[3] = loadImage("4.jpg"); images[4] = loadImage("5.jpg"); images[5] = loadImage("6.jpg"); images[6] = loadImage("7.jpg"); pics=images.length; frameRate(5); iterations=200; i=iterations+1; c=0; size(IMGWIDTH,IMGHEIGHT); background(images[int(random(0,pics))]); } void draw() { int cols; int rows; int sub; float r; float g; float b; float sumR; float sumG; float sumB; float w1; float w2; i=i+1; if (i>iterations){ blend=images[int(random(0,pics))]; i=1; c=c+1; if(c>3) {c=1;} ; } w2=i; w1=65*iterations- i; loadPixels(); for (rows=0;rows