neighborhood: Central Park

Jinsook Lee
Data Mining the City
1 min readSep 22, 2018
original sketch

3 columns and 3 rows of houses = 1 block

3 columns and 3 rows of blocks = entire region

2nd row = Central Park

#this is where your code should go
size(700,700)
background(255)
x = 5
y = 5
a = 10
b = 20
DL = 30
squareSize = 20
spacing = 3
#this is left side block
for column in xrange(0, a-2):
for row in xrange(0, DL):
if column == 02 and row == 25:
fill(255,0,0)
else:
fill(255)
rect(x + column * (squareSize + spacing),
y + row * (squareSize + spacing),
squareSize,squareSize)
#this is right side block
for column in xrange(b+2, DL):
for row in xrange(0, DL):
if column == 25 and row == 27:
fill(255,0,0)
else:
fill(255)
rect(x + column * (squareSize + spacing),
y + row * (squareSize + spacing),
squareSize,
squareSize)
#this is central park
fill(9,148,65)
#fill(96,168,48)
#fill(159,218,64)
rect(x+a*(squareSize + spacing),
y,
(b-a)*(squareSize + spacing),
DL*(squareSize+spacing)-spacing)

--

--