P6 rgb 32x32 matrix

Ok, post the code you are trying to use.

If it's too big to post between code tags, remove everything you can from the code, just leave the minimum to show what goes wrong when you run it.