[PROJECT V] PARAMETERIZE

SOURCE CODE

void setup () {
size(600,400);
noLoop();
}

void mousePressed() {
loop();
}

void draw() {
color change1 = color(0,random(255),0);
color change2 = color(random(255),255,255);
color change3 = color(random(55));

background(255, random(204), 204);

float x = random(50,50);
float y = random(300,100);
float z = random(90);
float w = random(150,120);
float u = random(200);


println("Rug");
fill(change1);
noStroke();
ellipse(x, y, z, z);

println("Rug2");
fill(173, 216, 230);
ellipse(y, x, w, u);

println("Rug3");
fill(240,230,140);
ellipse(x, x, x, x);

println("1. Ellipse");
ellipseMode (CENTER);
noStroke();
fill(169, 169, 169);
ellipse(y, y, z, z);

println("2. Eye 1");
strokeWeight(13);
stroke(0, 0, 0);
point(240, u);

println("3. Eye 2");
strokeWeight(13);
stroke(0, 0, 0);
point(w, 240);

println("4. Mouth 1");
strokeWeight(3);
line(w, u, u, 230);

println("5. Mouth 2");
strokeWeight(3);
line(190, x, 200, 230);

println("6. Mouth 3");
strokeWeight(3);
line(200, 230, 200, 234);

println("7. Ear 1");
strokeWeight(13);
stroke(169, 169, 169);
triangle(300, 290, 260, 300, 290, 320);

println("8. Ear 2");
strokeWeight(3);
triangle(140, y, x, 285, 130, 295);

println("9. Whisker 1");
strokeWeight(2);
stroke(change1);
noFill();
arc(125, 200, 50, 30, HALF_PI, PI);

println("10. Whisker 2");
strokeWeight(2);
noFill();
arc(133, 215, 50, 30, HALF_PI, PI);

println("11. Whisker 3");
strokeWeight(2);
noFill();
arc(300, 215, 60, 30, 0, HALF_PI);

println("12. Whisker 4");
strokeWeight(2);
noFill();
arc(300, 230, 60, 30, 0, HALF_PI);

println("13. Tail");
fill(change2);
strokeWeight(1);
stroke(169, 169, 169);
ellipse(380, 230, 70, 25);

println("14. Foot 1");
fill(169, 169, 169);
ellipse(w, 110, 20, 50);

println("15. Foot 2");
fill(169, 169, 169);
ellipse(300, 110, u, 50);

println("16. Foot 3");
fill(169, 169, 169);
ellipse(x, 120, x, 50);

println("17. Foot 4");
fill(change3);
ellipse(225, 105, 20, 50);
translate(random(-2, 2), random(-20, 20));

fill(255, 255, 255);
textSize(50);
text("HELP...", 400, 150);
}