# File lib/graster.rb, line 152 def tiled_row_spans y, forward=true spans = @image.spans[y] return spans if spans.empty? tiled_spans = [] if forward @config[:repeat][0].times do |tile| spans.each do |span| tiled_spans << [x_inches(tile,span[0]), x_inches(tile,span[1])] end end else (0...@config[:repeat][0]).to_a.reverse.each do |tile| spans.reverse.each do |span| tiled_spans << [x_inches(tile,span[1]), x_inches(tile,span[0])] end end end return tiled_spans end