Skip to content

Instantly share code, notes, and snippets.

@jessherzog
Created September 28, 2015 06:30
Show Gist options
  • Save jessherzog/2eb1f551076af97d9b88 to your computer and use it in GitHub Desktop.
Save jessherzog/2eb1f551076af97d9b88 to your computer and use it in GitHub Desktop.
code sketch 2
//variables
int a = 40;
int b = 255;
float ok = 255;
float ya = 500;
float yo = 0;
//boolean stroke() = true;
//boolean noStroke() = false;
void setup() {
size(800, 800);
colorMode(RGB, 100);
}
void draw() {
noStroke();
background(300, ya, ok);
// cone
fill(2, 191, 125);
rect(300, 360, 200, 70);
triangle(400, 750, 490, 400, 310, 400);
// burrrr
fill(ok, 80);
ellipse(400, 180, 180, 180);
ellipse(340, 300, 180, 180);
ellipse(460, 300, 180, 180);
// cherry
//fill(ok, 130, 12);
fill(yo, 13, 90);
ellipse(400, 75, 80, 80);
if (mouseX > ok/2) {
ok = random(360);
} else if (mouseX < 100) {
} else {
mouseY--;
fill(a);
}
//if (background != 0){
//stroke() = true;
drawJimi(20, mouseX, ok);
drawJimi(18, ok, ya);
drawJimi(6, 90, ok-mouseY);
// where are these going?
}
void mousePressed() {
if (yo == 0) {
yo = (b);
} else {
yo = 0;
}
}
void drawJimi (int jimiColor, float x, float y) {
fill(jimiColor);
ellipse(110, 400, 50, 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment