ICC
< back to sketch

int i,j,k,l,m,n,direction;

void setup(){

  size(300,300);
  l=150;
  m=220;
  n=240;
  direction=1;
}

void loop(){

  if(l>252 || l<81){
    direction =direction * -1;
  }
  if(m>223 || m<68){
    direction =direction * -1;
  }
  if(n>247 || n<78){
    direction =direction * -1;
  }
  l=l+direction;
  m=m-direction;
  n=n-direction;

  background(l,m,n);
  println(m);// check bugs

  stroke(255,255,255);
  for(i=0; i<300; i=i+30){
    for( j=0; j<300; j=j+30){
      //texture
      fill(208-i,255,255);
      ellipse(i,j,30,20);
      fill(244,236,225);
      quad(i,j,i+20,j+12,i+30,j+20,i+10,j+15);
      rotateX(PI/6);
    }
  }

}

//void mousePressed(){

//}

< back to sketch