# File lib/rubygame/surface.rb, line 318
  def fill( color, rect=nil )
    unless rect.nil? or rect.kind_of? Array
      raise TypeError, "invalid fill Rect: #{rect.inspect}"
    end

    color = _map_sdl_color( color )
    rect = SDL::Rect.new( rect.to_ary ) unless rect.nil?
    SDL.FillRect( @struct, rect, color )
    return self
  end