# File lib/gruff/base.rb, line 928
    def render_gradiated_background(top_color, bottom_color, direct = :top_bottom)
      case direct
      when :bottom_top
        gradient_fill = GradientFill.new(0, 0, 100, 0, bottom_color, top_color)
      when :left_right
        gradient_fill = GradientFill.new(0, 0, 0, 100, top_color, bottom_color)
      when :right_left
        gradient_fill = GradientFill.new(0, 0, 0, 100, bottom_color, top_color)
      when :topleft_bottomright
        gradient_fill = GradientFill.new(0, 100, 100, 0, top_color, bottom_color)
      when :topright_bottomleft
        gradient_fill = GradientFill.new(0, 0, 100, 100, bottom_color, top_color)
      else
        gradient_fill = GradientFill.new(0, 0, 100, 0, top_color, bottom_color)
      end
      Image.new(@columns, @rows, gradient_fill)
    end