Interactive Smiling Face and GIF

It will change to a smiling happy face when the mouse clicks.
def setup():
size(500,500)
noStroke()
background(255, 220, 220)
def draw():
#this is the dictionary of face
fill(255)
stroke(100)
strokeWeight(3)
dict = {‘faceXPosition’:150, ‘faceYPosition’:160,’faceRadius’:200}
rect(dict[‘faceXPosition’], dict[‘faceYPosition’], dict[‘faceRadius’], dict[‘faceRadius’])

#this is the mouth
fill(230)
stroke(100)
strokeWeight(3)
mouthXPosition = 250
mouthYPosition = 290
mouthWidth = 100
mouthHeight = 80
mouthStart = 0
mouthStop = PI
mouthMode = CHORD
mouthX = 10
mouthY = 70

if mousePressed:
arc(mouthXPosition, mouthYPosition, mouthWidth, mouthHeight, mouthStart, mouthStop, mouthMode)
else:
arc(mouthXPosition, mouthYPosition+10, mouthWidth/2, mouthHeight/80, mouthStart, mouthStop, mouthMode)

#this are eyebrows
listEyebrow = [180, 220, 230, 270, 320]
line(listEyebrow [0], listEyebrow [1], listEyebrow [2], listEyebrow [1])
line(listEyebrow [3], listEyebrow [1], listEyebrow [-1], listEyebrow [1])

#this is left eye
leftEyeXPosition = 185
leftEyeYPosition = 225
eyeRadius = 10
    #this is right eye
rightEyeXPosition = 275
rightEyeYPosition = 225
eyeRadius = 10
    #this is how the eyes moves
if mousePressed:
fill(0)
noStroke
ellipse(leftEyeXPosition, leftEyeYPosition, eyeRadius+2, eyeRadius+2)
fill(0)
noStroke
ellipse(rightEyeXPosition, rightEyeYPosition, eyeRadius+2, eyeRadius+2)
else:
fill(255,0,0)
noStroke
ellipse(leftEyeXPosition+10, leftEyeYPosition, eyeRadius, eyeRadius)
fill(255,0,0)
noStroke
ellipse(rightEyeXPosition+10, rightEyeYPosition, eyeRadius, eyeRadius)

#this are hairs
line(180, 160, 210, 120)
line(210, 160, 240, 120)
line(240, 160, 270, 120)
line(270, 160, 300, 120)
line(300, 160, 330, 120)
    moods = [‘happy’, ‘bored’, ‘sad’]
for mood in moods:
print ‘I am ‘ + mood
text(‘I am ‘ + mood, 400, 200)
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.