I have a multidimensional int array that has either a '0' or a '1'. I would like to create an image that resembles a heat map. The elements that have a '0' would be of one color and those of '1' would be of another color. For instance
int [][] test = {{0,0,1}, {1,1,0}, {1,1,1}}
I would get an image of "3 x 3", kind of like this.
wwr
rrw
rrr
where white denotes white and r red.
Thanks for any suggestions.