Skip to content

Instantly share code, notes, and snippets.

@jessherzog
Created September 21, 2015 16:06
Show Gist options
  • Save jessherzog/f4b4ebdd1312d97fe0ca to your computer and use it in GitHub Desktop.
Save jessherzog/f4b4ebdd1312d97fe0ca to your computer and use it in GitHub Desktop.
int x = 1;
int y = 2;
int value;
void setup ()
{
size(1200, 1200);
pixelDensity (2);
}
void draw ()
{
x = x + 5;
y = y * 2;
background(value);
noStroke();
fill(25, 40, 10, 300);
ellipse(300, mouseY + y, 400, 400);
noStroke();
fill(26, 50, 80, 100);
rect(400, 40, 650, 400);
stroke(20);
noFill();
ellipse(300, 500, 500, 80);
noStroke();
fill(145);
quad(38, 31, 86, 20, 69, 63, 30, 76);
}
void mouseClicked() {
if (value == 0) {
value = 255;
} else {
value = 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment