Saturday, August 22, 2009

bobblesketchV6

int dx = 0;

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

void draw() {
  background(20,30,40);
  if (mousePressed) 
  {
    strokeWeight(10);
    stroke(30,mouseY,mouseX);
    fill(246,mouseY,mouseX);
  } 
  else 
  {
    strokeWeight(10);
    stroke(mouseY,30,mouseX);
    fill(10,mouseY,mouseX);
  }
  if(++dx > 20)
    dx = 0;
  
  int w = (mouseX / width) * 200;
  int h = (mouseY / height) * 200;

 ellipse(150+dx,mouseY+w,mouseX+w ,150+h);

  translate(150, 150);
  for (int i=0; i < 20 ; i = i+1)
  {
    translate(h,0);
    rotate(PI/10);
    rect(mouseX,0,mouseX,mouseY);
  }
}

info info

submitted by: saul_albert
views: 

make chicken sounds

treeThis sketch has a parent
Tags:

comments comment

loading loading...

 

Add a comment: