mas110 exhibition .fundamentals of computational media design.spring 2000.professor john maeda
megan's static pieces . megan's dynamic pieces


# left to right
# white to black
# variation in square size, vertical spacing, horizontal
# spacing inspired by some work i looked at over the
# weekend


# boxline creates the columns of boxes
# can specify the box size, the x-coord position, the pen
# color, and the vertical spacing between boxes

def boxline(size, x, pen, space):
for i in range(0, 100):
a = (i*space)
if (((a-1)*size) < 100):
g.field(x, (a*size), (x+size), ((a-1)*size), pen)

# this iterates through to create the gradation

count = 0
for i in range(1, 10):
boxline(i, (1+count+i), 100, (20-(2*i)))
boxline(1, (100-(count+(1*i/2))), 100, 18)
count = (count+(2*i))