Exercise 2.49: Use segments->painter to define the following primitive painters: The painter that draws the outline of the designated frame. The painter that draws an “X” by connecting opposite corners of the frame. The painter that draws a diamond shape by connecting the midpoints of the sides of the frame. The wave painter.