What method calls have you tried to set the color?
Or is the problem with the logic: alternating the colors