SAR Neighborhood

Jiacheng Zhou
1 min readSep 12, 2018

SAR represents for Simple, Affordable and Regular.

The slight green represents block, the dark green represents parks (green space) and the orange represents buildings and houses. Each block has 10 buildings and a small park.

There are three main streets in the neighborhood. They are called ‘Sanction Street’, ‘Aqua Street’, ‘Robust Street’ separately.

`
def setup():
size(800, 800)
fill(0)
global width, road, blocksPerNeighborhood, blocksPerRow, blockLength, houseSetbacks, houseSize, houseQuantity,f
f = createFont("Times New Roman",20,True)
width =600
road = 25
blocksPerNeighborhood = 16
houseSetbacks = 9
houseQuantity = 5
blocksPerRow = int(sqrt(blocksPerNeighborhood))
blockLength = int((width/blocksPerRow)-road)
houseSize = (blockLength/houseQuantity) - houseSetbacksdef draw():
background(255)
#draw blocks
for b in range(blocksPerNeighborhood):
fill(50, 150, 50,80)
stroke(50, 50, 50)
strokeWeight(1)
col = b % blocksPerRow
row = b / blocksPerRow
xCol = col*(blockLength+road)
yCol = row*(blockLength+road)
rect(xCol+50,yCol+50,blockLength,blockLength)

#draw houses
fill(204,102,0,1000)
noStroke()
h = -1

while h < houseQuantity-1:
h += 1
rect(xCol+houseSetbacks+55,yCol +50+ (h*(houseSize+houseSetbacks))+5,houseSize,houseSize)
rect(xCol+houseSetbacks+135,yCol +50+ (h*(houseSize+houseSetbacks))+5,houseSize,houseSize)
print(houseSize)

#draw a park
fill(0,128,0)
noStroke()
ellipse(xCol+110,yCol+125,25,50)

# draw a text
fill(0)
textAlign(CENTER)
textFont(f)

text("SAR Neighborhood", width/2+50, 30) `

--

--