Index / 2016 / Assignment 05 Mission 08
300×400 · p5.js instance mode
assignment_05_mission_08.pde 52 lines

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);
 
 // Pupils
 float mx1 = constrain(mouseX,125,145);
 float my1 = constrain(mouseY,175,195);
 float mx2 = constrain(mouseX,155,175);
 float my2 = constrain(mouseY,175,195);
 // Left Pupil
 fill(#363434);
 stroke(#);
 ellipse(mx1,my1,10,10);
 // Right Pupil
 fill(#363434);
 stroke(#);
 ellipse(mx2,my2,10,10);
 
 // Nose
 fill(#FF0307,127);
 stroke(#D30206);
 rect(145,195,10,20);
 
 // Mouth
 fill(#363434);
 stroke(#);
 ellipse(150,230,40,15);
 
}
read-only archive source from /2016/ASSIGNMENTS/A-05 Programming in Processing/ICS2O_Nguyen,Vincent_A-05 Processing/assignment_05_mission_08/assignment_05_mission_08.pde

Description

This page is generated from the Processing project folder at /2016/ASSIGNMENTS/A-05 Programming in Processing/ICS2O_Nguyen,Vincent_A-05 Processing/assignment_05_mission_08/assignment_05_mission_08.pde.

Archive

No companion assets were found in this sketch folder.