# File lib/graster.rb, line 150 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 @config[:repeat][0].times.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