Implemented drawing of gradient rectangles for GUIs.