Siman Huang
1 min readOct 16, 2017

size(800, 800)

locationsDict = {‘leftEyeX’: width/3, ‘leftEyeY’: height/3, ‘rightEyeX’: width*2/3, ‘rightEyeY’: height/3}
locationsDict [‘mouthX’] = width/2
locationsDict [‘mouthY’] = height*2/3
dimensionsDict = {‘eyeWidth’: 100, ‘eyeHeight’: 150}
dimensionsDict [‘mouthWidth’] = 400
dimensionsDict [‘mouthHeight’] = 100
print locationsDict
print dimensionsDict

#left eye
fill(0)
ellipse(locationsDict[‘leftEyeX’], locationsDict[‘leftEyeY’], dimensionsDict[‘eyeWidth’], dimensionsDict[‘eyeHeight’])

#right eye
ellipse(locationsDict[‘rightEyeX’], locationsDict[‘rightEyeY’], dimensionsDict[‘eyeWidth’], dimensionsDict[‘eyeHeight’])

#mouth
noFill()
stroke(255, 0, 0)
strokeWeight(4)
rectMode(CENTER)
rect(locationsDict[‘mouthX’], locationsDict[‘mouthY’], dimensionsDict[‘mouthWidth’], dimensionsDict[‘mouthHeight’])