How can I create alternating colors on matrix rows?