void setup(){ size(600,960); // background(255); //noLoop(); //frameRate(300); } //setting variables int i,j; //sampling point and location of a small picture int k,h=0,l=3; color c; //color of sampling point int loc; //pixel value //float xl,yl; //float sel; PFont font1, font2; void draw(){ smooth(); colorMode(RGB,255,255,255); background(255); PImage img1,img2; img1 = loadImage("bf_origina2l.jpg"); img2 = loadImage("bf_origina2l_s.jpg"); // image(img1,0,0); for(j=0;j<=39;j++){ for(i=0;i<=40;i++){ loc = i*15+j*24*600; // selecting sampling points c = img1.pixels[loc]; // color of sampling points of a img1 tint(c,random(200,255)); // tint(c); image(img2,i*15,j*24); //displaying small pictures } } // noTint(); // image(img1,601,0); /* colorMode(HSB,100,50,50); for(k=0;k<=200;k++){ xl = random(20,580); yl = (height/2)+sqrt(sq(280)-sq(xl-width/2)); sel = random(-1,1); if(sel<0){ yl = -yl; } else{ yl = yl; } stroke(250,31,88,50); line(width/2,height/2,xl,yl); }*/ noSmooth(); font1 = loadFont("ArialMT-20.vlw"); textFont(font1,20); fill(#fcfcfc); text("Brandon Flower",400, 950); font2 = loadFont("ACaslonPro-Bold-60.vlw"); textFont(font2,60); colorMode(HSB,359,99,99); h = h + l; if((h<0)||(h>60)){ l = -l; } //noStroke(); fill(0,0,41,200); rect(10,10,320,90); fill(h,85,80); text("The Killers", 20,80); }