A full round face

Hui Liu
Data Mining the City
1 min readSep 27, 2017
def setup():
size(400,400)
strokeWeight(5)
def draw():
dict = {}
dict['circle']=[200, 50, 20, 30, 15,40,20]
#this is where I draw the shapes of the face
stroke(0,0,0)
fill(255,255,255)
ellipseMode(CENTER)
#this is the face
ellipse(200,200, dict['circle'][0], dict['circle'][0])
#this is the eyes
ellipse(150, 180, dict['circle'][1], dict['circle'][1])
ellipse(250, 180, dict['circle'][1], dict['circle'][1])
#this is the cheeks
fill(200,0,0)
noStroke()
ellipse(150, 230, dict['circle'][5], dict['circle'][6])
ellipse(250,230, dict['circle'][5], dict['circle'][6])
if (mouseX < 200):
stroke(0,0,0)
fill(250,250,250)
curve(170, 100, 175, 250, 225, 250, 225, 100)
line(175, 250, 225, 250)
fill(0,0,0)
ellipse(150, 180, dict['circle'][4], dict['circle'][4])
ellipse(250, 180, dict['circle'][4], dict['circle'][4])
elif mouseY < 200:
stroke(0,0,0)
fill(0,0,0)
ellipse(165, 180, dict['circle'][4], dict['circle'][4])
ellipse(265, 180, dict['circle'][4], dict['circle'][4])
fill(250,250,250)
curve(170, 300, 175, 250, 225, 250, 225, 300)
else:
stroke(0,0,0)
fill(250,250,250)
ellipse(200, 250, dict['circle'][2], dict['circle'][3])
fill(0,0,0)
ellipse(140, 180, dict['circle'][4], dict['circle'][4])
ellipse(240, 180, dict['circle'][4], dict['circle'][4])

--

--