Pattern generator for the Tensor wall (http://wiki.artisansasylum.com/index.php/Tensor)