xxxxxxxxxx
//This sets up our sketch. It happens first, and only runs once.
void setup() {
size(600,600); //Size of our sketch
background(126,157,255); //Background colour
noStroke(); //Removes the outline around our shapes
}
//This part loops over and over. It happens in order (sequence) and layers from the back to front.
void draw() {
//Emoji Head
fill(255,218,0); //yellow
ellipse(300, 300, 400, 400); //circle
//Mouth
fill(0,0,0); //black
arc(300, 400, 200, 100, 0, PI); //semi-circle
//Right Eye
fill(255,255,255); //white
ellipse(400, 300, 150, 150); //circle
//Right Pupil
fill(0,0,0); //black
ellipse(400, 300, 50, 50); //circle
//Left eye - winking
//also black - don't need to update fill()
arc(200, 300, 100, 50, PI, TWO_PI); //semi-circle
//Sticking out tongue - IF a key is pressed
if(keyPressed == true){
fill(255,78,83); //red
arc(300, 400, 100, 150, 0, PI); //semi-circle
}
}