Last fall, we spent a weekend in western Massachussetts, where we hiked Mount Greylock and enjoyed the season's spectacular foliage. We also visited MASS MoCA, a sprawling contemporary art campus in North Adams.

One of the buildings houses three expansive floors of Sol Lewitt's wall drawings. These drawings aren't typical—Lewitt didn't draw them himself. Rather, he provided instructions for the drawings, a kind of algorithm for other people to execute. Some of his specifications provide little room for interpretation, while others are deliberately vague.

One of the pieces I found myself most excited by was Wall Drawing 51, whose instruction reads: "All architectural points connected by straight lines." When I saw a wall crossed with blue lines, I wondered if this work could be generated with a computer. If a program could find a wall's "architectural points", surely it could connect them with straight lines.

This program is my attempt to simulate Wall Drawing 51 in JavaScript. Enjoy!