Saturday, August 22, 2009
alexZv3
// just type here
// and click "submit" when done
int red_part =0;
int green_part = 0 ;
int blue_part = 0;
void setup(){
size(300,300);
background(20,30,40);
}
void draw(){
red_part++;
green_part++;
blue_part++;
if (red_part > 246){
red_part = 0;
}
if (green_part > 166){
green_part = 0;
}
if (blue_part > 200){
blue_part = 0;
}
fill(red_part,green_part,blue_part);
translate(width/2, height/2);
rect(-10,-10,120,120);
rotate(mouseX/3.0);
fill(255-red_part,green_part,blue_part);
rect(0,0,100,100);
}
// and click "submit" when done
int red_part =0;
int green_part = 0 ;
int blue_part = 0;
void setup(){
size(300,300);
background(20,30,40);
}
void draw(){
red_part++;
green_part++;
blue_part++;
if (red_part > 246){
red_part = 0;
}
if (green_part > 166){
green_part = 0;
}
if (blue_part > 200){
blue_part = 0;
}
fill(red_part,green_part,blue_part);
translate(width/2, height/2);
rect(-10,-10,120,120);
rotate(mouseX/3.0);
fill(255-red_part,green_part,blue_part);
rect(0,0,100,100);
}