Not good for export. The model has gaps due to floating point error on the position of the cubes. It would be better practice to check for faces and vertices within a very small radius and remove redundant faces/vertices. This would fix the issue and optimize the model.
You would likely need to add some code for texturing, assigning 1 pixel on a material to each individual color and applying that to the model and modifying the UVs to suit.