make_zoom_gif.rb
# a piece of the render command. generates a snippet in the form:
# \( "ab.png" -resize 155x302 \) -geometry +23-101 -composite
# src: the source filename
# scale: the scale
# ctr_x, ctr_y: : vanishing point, coordinates relative to upper left of img
a piece of the render command.
a piece of the render command .
def render_piece(src, scale, ctr_x, ctr_y)
    scale = scale.to_f
    x = ctr_x * (1 - scale)
    y = ctr_y * (1 - scale)
    "\\( \"#{src}\" -resize #{_dim(@w0, @h0, scale)} \\) -geometry #{_off(x, y)} -composite"
  end
def render_piece ( src , scale , ctr_x , ctr_y ) scale = scale . to_f x = ctr_x * ( 1 - scale ) y = ctr_y * ( 1 - scale ) "\\( \"#{src}\" -resize #{_dim(@w0, @h0, scale)} \\) -geometry #{_off(x, y)} -composite" end
a piece of the render command.
a piece of the render command .
src
<not_specific>
scale
<not_specific>
ctr_x
<not_specific>
ctr_y
<not_specific>