Week 2
Published in
2 min readSep 20, 2017
Yelp, Subways, Panda Bear
Yelp changed Subway Station Neighborhood?
The urban space is apparently influenced by the existence of subway station. I am curious that what impact or change have things like Yelp made on the urban space, especially the neighborhood of a Subway Station.
Maybe I will examine the quantity and the types of commercial, residential architecture, density and vegetation before and after Yelp.
Processing a Panda Bear
def setup():
size(500,500)
background(124,130,200)
#define locations and measures for the face
dict = {}
dict['centers'] = {'centerofFace':250, 'centerofLeftEar':150, 'centerofRightEar':350, 'centerofLeftEye':200, 'centerofRightEye':300, 'centerofMouth':250, 'centerofNose':250}
dict['radius']={'radiusFace':300, 'radiusEar':120, 'radiusEar2':60, 'radiusEye1':80, 'radiusEye2':40, 'radiusEye3':20, 'radiusEye4':10, 'radiusMouth':100, 'radiusNose':40}
#this is the left ear
fill(0)
ellipse(dict['centers']['centerofLeftEar'], dict['centers']['centerofLeftEar'], dict['radius']['radiusEar'], dict['radius']['radiusEar'])
fill(255)
ellipse(dict['centers']['centerofLeftEar'], dict['centers']['centerofLeftEar'], dict['radius']['radiusEar2'], dict['radius']['radiusEar2'])
#this is the right ear
fill(0)
ellipse(dict['centers']['centerofRightEar'], dict['centers']['centerofLeftEar'], dict['radius']['radiusEar'], dict['radius']['radiusEar'])
fill(255)
ellipse(dict['centers']['centerofRightEar'], dict['centers']['centerofLeftEar'], dict['radius']['radiusEar2'], dict['radius']['radiusEar2'])
#this is the face
fill(255)
strokeWeight(5)
ellipse(dict['centers']['centerofFace'], dict['centers']['centerofFace'], dict['radius']['radiusFace'], dict['radius']['radiusFace'])
#this is the left eye
fill(0)
noStroke
ellipse(dict['centers']['centerofLeftEye'],dict['centers']['centerofLeftEye']+20, dict['radius']['radiusEye1'], dict['radius']['radiusEye1'])
fill(255)
ellipse(dict['centers']['centerofLeftEye'],dict['centers']['centerofLeftEye']+20, dict['radius']['radiusEye2'], dict['radius']['radiusEye2'])
fill(0)
ellipse(dict['centers']['centerofLeftEye']+5,dict['centers']['centerofLeftEye']+25, dict['radius']['radiusEye3'], dict['radius']['radiusEye3'])
fill(255)
ellipse(dict['centers']['centerofLeftEye']+5,dict['centers']['centerofLeftEye']+25, dict['radius']['radiusEye4'], dict['radius']['radiusEye4'])
#this is the right eye
fill(0)
ellipse(dict['centers']['centerofRightEye'],dict['centers']['centerofLeftEye']+20, dict['radius']['radiusEye1'], dict['radius']['radiusEye1'])
fill(255)
ellipse(dict['centers']['centerofRightEye'],dict['centers']['centerofLeftEye']+20, dict['radius']['radiusEye2'], dict['radius']['radiusEye2'])
fill(0)
ellipse(dict['centers']['centerofRightEye']-5,dict['centers']['centerofLeftEye']+25, dict['radius']['radiusEye3'], dict['radius']['radiusEye3'])
fill(255)
ellipse(dict['centers']['centerofRightEye']-5,dict['centers']['centerofLeftEye']+25, dict['radius']['radiusEye4'], dict['radius']['radiusEye4'])
#this is the mouse
fill(255)
strokeWeight(4)
ellipse(dict['centers']['centerofMouth'], dict['centers']['centerofMouth']+40, dict['radius']['radiusMouth'], dict['radius']['radiusMouth'])
noFill()
curve(dict['centers']['centerofMouth']-100, dict['centers']['centerofMouth'], dict['centers']['centerofMouth'], dict['centers']['centerofMouth']+40, dict['centers']['centerofMouth']-30, dict['centers']['centerofMouth']+60,dict['centers']['centerofMouth']-80, dict['centers']['centerofMouth']-40)
noFill()
curve(dict['centers']['centerofMouth']+100, dict['centers']['centerofMouth'], dict['centers']['centerofMouth'], dict['centers']['centerofMouth']+40, dict['centers']['centerofMouth']+30, dict['centers']['centerofMouth']+60,dict['centers']['centerofMouth']+80, dict['centers']['centerofMouth']-40)
#this is the nose
fill(0)
noStroke
ellipse(dict['centers']['centerofNose'], dict['centers']['centerofNose']+30, dict['radius']['radiusNose'], dict['radius']['radiusNose'])