Typesetting arrays of cubes

The Stack Overflow user known as Tom Bobadil wrote some lovely code. Here's a small example showing how easy it is to use.


\tikzcuboid{%
	shiftx=0cm,%
	shifty=0cm,%
	scale=0.5,%
	dimx=6,%
	dimy=3,%
	dimz=2
}