A simple tool for coloring a square matrix given the matrix's dimensions.