Description
This page is generated from the Processing project folder at /2016/ASSIGNMENTS/A-05 Programming in Processing/assignment_05_mission_06/assignment_05_mission_06.pde.
Archive
No companion assets were found in this sketch folder.
int xNose = 140;
int NoseSpd = -1;
void setup() {
size (300,400);
background (#AAEBF7);
}
void draw() {
background (#AAEBF7);
strokeWeight(3);
// Head
fill(#FF820D);
stroke(#C46710);
ellipse(150,200,100,100);
// Eyes
// Left Eye (Green)
fill(#,127);
stroke(#);
ellipse(135,185,40,40);
// Right Eye (Blue)
fill(#,127);
stroke(#);
ellipse(165,185,40,40);
// Nose
fill(#FF0307,127);
stroke(#D30206);
rect(xNose,190,20,20);
// Mouth
fill(#363434);
stroke(#);
ellipse(150,230,40,15);
// Movement
xNose += NoseSpd;
// Bounce
if (xNose < 0 || xNose > 280) {
NoseSpd = -1*NoseSpd;
}
} This page is generated from the Processing project folder at /2016/ASSIGNMENTS/A-05 Programming in Processing/assignment_05_mission_06/assignment_05_mission_06.pde.
No companion assets were found in this sketch folder.