Method: Squib::DSL::PNG#run
- Defined in:
- lib/squib/dsl/png.rb
#run(opts) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/squib/dsl/png.rb', line 38 def run(opts) warn_if_unexpected opts Dir.chdir(deck.img_dir) do range = Args.extract_range opts, deck paint = Args.extract_paint opts, deck box = Args.extract_scale_box opts, deck trans = Args.extract_transform opts, deck ifile = Args.extract_input_file opts, deck deck..start('Loading PNG(s)', range.size) do || range.each do |i| deck.cards[i].png(ifile[i].file, box[i], paint[i], trans[i]) .increment end end end end |