23 lines
286 B
Plaintext
Raw Normal View History

2013-02-05 19:01:35 +01:00
// Click within the image to change
// the value of the rectangle
int value = 20;
void setup(){
size(300,400);
stroke(value);
background(250);
}
void draw(){
value = mouseX;
fill(value);
stroke(value-100);
}
void mouseReleased() {
ellipse(mouseX,mouseY,20,20);
}