Author: Not specified | Language: c |
Description: Not specified | Timestamp: 2013-06-15 12:18:27 +0000 |
View raw paste | Reply |
- int counter;
- void setup() { //setup function called initially, only once
- size(250, 250);
- background(255); //set background white
- colorMode(RGB); //set colors to Hue, Saturation, Brightness mode
- counter = 0;
- }
- void draw()
- {
- int mx=50,my=100;
- fill(778899);
- rect((width-mx)/2,(height-my)/2,mx,my,0);
- }
- void mouseMoved()
- {
- color(0
- line(0,0,mouseX,mouseY);
- clear();
- }
View raw paste | Reply |