BS 1 Programming


int r=64;
int g=50;
int h=120;
void setup()
{
  size(400,400);
  background(10);
  fill(100,10,10);
  int r=64;
  int g=120;
  int h=120;
  stroke(r,g,h);
}
 void draw()
 {
       ellipse (mouseX, mouseY, 50, 50);
 }
   
     void mousePressed()
   {
    r+=4;
    g+=10;
    r=mouseX;
    g=mouseY;
  fill(r,g,h);
  rect(mouseX, mouseY, 51, 150);
  line(mouseX, mouseY, 10, 150);

     }
   

Hey frndz hwz ds one????/ chkd it out,,,

No comments:

Post a Comment