Added draw_rectangle_gradient to 2d.