PImage boy; 
int index; 
 
void setup() 
{ 
  background (0);
  size(300, 300); 
  smooth ();
  boy = loadImage("smallboy.jpg"); 
  framerate(15); 
  background(255); 
  noStroke(); 
} 
 
void draw() 
{ 
  index = index + 1; 
  if(index >= 400) { 
    index = 0; 
  } 

  fill(50, 0); 
  rect(0, 0, width, height); 
  color c = boy.pixels[index]; 
 push();
  float r = red(c);   
  fill(r*200, r, 0, r); 
  rect(r-10, 0, r/2, 300); 
 pop();
   float b = blue(c);
  fill(0, b, b*300, 50);
  rect(0, b-30, 20*b, b);

}
Exercise 3.B: Image Data
Load a 20x20 pixel image into your program and use the colors in the image as a source of data for generating a kinetic experience amplifying the original image.