Sunday, May 31, 2009
colour shapes
// just type here
// and click "submit" when done
void setup(){
size(301,301);
}
void draw() {
background(290, 290, 50);
noStroke();
fill(mouseX, 139, mouseY);
rect(70, 70, 45, 45);
fill(20, mouseY, mouseX);
rect(50, 50, 35, 35);
fill(mouseX, 139, mouseY);
rect(45, 45, 70, 70);
fill(mouseX, 20, mouseY);
rect(50, 50, 35, 35);
fill(mouseX, mouseY, 139);
rect(45, 45, 100, 100);
fill(20, mouseY, mouseX);
rect(50, 50, 35, 35);
fill(mouseX, mouseY, mouseY);
rect(45, 45, 200, 200);
fill(20, mouseY, mouseX);
rect(50, 50, 35, 35);
}
// and click "submit" when done
void setup(){
size(301,301);
}
void draw() {
background(290, 290, 50);
noStroke();
fill(mouseX, 139, mouseY);
rect(70, 70, 45, 45);
fill(20, mouseY, mouseX);
rect(50, 50, 35, 35);
fill(mouseX, 139, mouseY);
rect(45, 45, 70, 70);
fill(mouseX, 20, mouseY);
rect(50, 50, 35, 35);
fill(mouseX, mouseY, 139);
rect(45, 45, 100, 100);
fill(20, mouseY, mouseX);
rect(50, 50, 35, 35);
fill(mouseX, mouseY, mouseY);
rect(45, 45, 200, 200);
fill(20, mouseY, mouseX);
rect(50, 50, 35, 35);
}
info
submitted by:
sophie.mcdonaldviews:
copied from basic shapes for a start. now with changing colours!! ;o)

comments

Add a comment: