xxxxxxxxxx
/*------------------------
Robot Valentine
Just a sweet, romantic robot eatin' some pizza made out of variables.
Created 1/24/17
Kali Johnston
SP 2017
knjohnston0704@gmail.com
https://www.openprocessing.org/sketch/401234
---------------------------*/
size(700,500);
background(200);
/*leftover numbers
380
310
70
80
30
250
450
275
475
58
86
*/
//integer key
int c_a;
c_a = 300;
int c_b;
c_b = 280;
int c_c;
c_c = 200;
int c_d;
c_d = 100;
int c_e;
c_e = 170;
int c_f;
c_f = 40;
int c_g;
c_g = 150;
int n_1;
n_1 = 20;
int n_2;
n_2 = 50;
int n_3;
n_3 = 0;
int n_4;
n_4 = 320;
int n_5;
n_5 = 175;
int n_6;
n_6 = 220;
int n_7;
n_7 = 400;
int n_8;
n_8 = 425;
int n_9;
n_9 = 380;
//head
rect(c_a,n_2,c_d,n_2);
rect(c_a,c_d,c_d,c_d);
//mouth
rect(n_4,c_e,n_2,n_1);
//eyes
ellipse(n_4,c_g,n_1,n_1);
ellipse(n_9,c_g,n_1,n_1);
//main body
rect(n_6,c_c,n_6,c_c);
//legs
rect(n_8,n_7,n_1,c_d);
rect(n_6,n_7,n_1,c_d);
//head baubles
arc(c_b,c_g,n_2,n_2,n_3,PI+QUARTER_PI);
arc(n_8,c_g,n_2,n_2,n_3,PI+QUARTER_PI);
//pizza
triangle(c_a, n_5, c_g, c_c, c_d, n_5);
//arm 1
noFill();
beginShape();
curveVertex(c_a,c_b);
curveVertex(c_a,c_b);
curveVertex(c_g,c_f);
curveVertex(c_d,c_d);
curveVertex(c_c,c_e);
curveVertex(c_c,c_e);
endShape();
//arm 2
noFill();
beginShape();
curveVertex(c_b,c_a);
curveVertex(c_b,c_a);
curveVertex(c_f,c_g);
curveVertex(c_d,c_d);
curveVertex(c_e,c_c);
curveVertex(c_e,c_c);
endShape();