kepress Code

void setup()
{
  size(400,200);
}

void draw()
{
  background(0);
  if(keyPressed==true)
  {
    if(key=='d' || key=='D')
    {
      fill(255,255,0);
      ellipse(100,100,100,100);
    }
    else if(key=='k' || key=='K')
    {
      fill(0,255,0);
      rect(50,50,100,100);
    }
  }
}

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Bintoro Ali
');