Is it possible to create seemingly infiniltey repeating latice

I am trying to emulate a image created by Escher. The image consists of a infinite latice of cubes.
Is this image possible? and if so what would I need?

link to the image

The easiest way would be to procedurally generate the meshes, not too bad with the simple shapes, and then put a black material on them, put in some fog, and adjust the camera.