Sunday, May 31, 2009

colour shapes

// just type here
// and click "submit" when done


void setup(){
  size(301,301);
}

  void draw() {
 background(290, mouseX, 50);
 noStroke();

 fill(mouseX, 139, mouseY);
 rect(45, 45, 45, 45);
 fill(20, mouseY, mouseX);
 rect(50, 50, 35, 35);

fill(mouseX, 139, mouseY);
 rect(100, 100, 100, 100);
 fill(mouseX, 20, mouseY);
 rect(50, 50, 35, 35);

fill(mouseX, mouseY, 139);
 rect(200, 200, 200, 200);
 fill(20, mouseY, mouseX);
 rect(50, 50, 35, 35);

fill(mouseX, mouseY, mouseY);
 rect(100, 100, 100, 100);
 fill(20, mouseY, mouseX);
 rect(50, 50, 35, 35);


}

info info

submitted by: sophie.mcdonald
views: 1858
copied from basic shapes for a start. now with changing colours!! ;o) and more changing colours, but i have plans for this...

treeThis sketch has a parent
Tags: easy

comments comment

loading loading...

 

Add a comment: