Author: Not specified Language: c
Description: Not specified Timestamp: 2013-06-15 12:18:27 +0000
View raw paste Reply
  1. int counter;
  2.  
  3. void setup() {  //setup function called initially, only once
  4.   size(250, 250);
  5.   background(255);  //set background white
  6.   colorMode(RGB);   //set colors to Hue, Saturation, Brightness mode
  7.   counter = 0;
  8. }
  9.  
  10. void draw()
  11. {  
  12.     int mx=50,my=100;
  13.     fill(778899);
  14.     rect((width-mx)/2,(height-my)/2,mx,my,0);
  15.  
  16. }
  17.  
  18. void mouseMoved()
  19. {
  20.     color(0
  21.     line(0,0,mouseX,mouseY);
  22.     clear();
  23. }
View raw paste Reply