Victoria’s Button

Please upgrade your browser to something new like Google Chrome.

//Made with ProcessingLyon Tumblrify:
//http://p5lyon.tumblr.com/ProcessingJSTumblr
//English Version:
//http://p5lyon.tumblr.com/ProcessingJSTumblrEn

float x = 200;
float y = 100;
float w = 100;
float h = 100;
void setup(){
size(400,400);
background(100, 250, 50);
strokeWeight(5);
noFill();
}

void draw(){
background(100, 250, 50);
rect(x,y,w,h);
fill(11, 103, 141);
if(mousePressed){
if(mouseX>x && mouseX y && mouseY <y+h){
background(11, 103, 141);
fill(200, 200, 100);
rect(x,y,w,h);
}
}
}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.