xxxxxxxxxx
var colorr
var colorg
var colorb
function setup() {
createCanvas(600, 600);
colorr = 0
colorg = 250
colorb = 0
}
function draw (){
background(colorg)
fill (115, 245, 228)
//face
square (100, 100, 400, 20)
//eyes
fill (colorr)
circle (200, 200, 150)
fill(colorr)
circle (386,200, 150)
//pupils
fill (colorg)
circle (180, 180,60)
circle (225,220,35)
circle (365, 180,60)
circle (400,230,35)
//dimples
fill (237, 111, 135)
ellipse (150,334, 70, 25)
ellipse (450, 334, 70,25)
//eyebrows
fill (colorr)
ellipse (190, 110,90, 8)
ellipse (400, 110,90,8)
//smile
fill(colorb)
ellipse (300,400,300,5)
}
function keyPressed(){
if (key == 'a'){
colorr +=20;
}
if (key == 's'){
colorg -=20;
}
if (key == 'r'){
colorb +=30;
}
}