two different colored rectangles and rotation