I think this might be going down a similar path as Kenny Tilton's cells:
https://github.com/kennytilton/kennytilton.github.io
Same idea in python Trellis and one of Sean Parent's explorations at Adobe.