make_zoom_gif.rb
# usage function to display help for the hapless user
usage function to display help for the hapless user
usage function to display help for the hapless user
def usage
  mycmd = File.basename($0)
  puts mycmd
  puts "usage: #{mycmd} input_file output_file center_x center_y minimum_w minimum_h stepsize"
  puts
  puts "Creates an animated gif with a zooming effect from input_file and saves it to output_file"
  puts "center_x, center_y represent the vanishing point, in pixels from the upper left of the image"
  puts "minimum_x, minimum_y represent the bounding box of the size that the image should zoom into"
  puts "stepsize is (roughly) the number of pixels to enlarge by.  or maybe I miscalculated."
end
def usage mycmd = File . basename ( $0 ) puts mycmd puts "usage: #{mycmd} input_file output_file center_x center_y minimum_w minimum_h stepsize" puts puts "Creates an animated gif with a zooming effect from input_file and saves it to output_file" puts "center_x, center_y represent the vanishing point, in pixels from the upper left of the image" puts "minimum_x, minimum_y represent the bounding box of the size that the image should zoom into" puts "stepsize is (roughly) the number of pixels to enlarge by.  or maybe I miscalculated." end
usage function to display help for the hapless user
usage function to display help for the hapless user