class GridPresenter

Public Instance Methods

display(grid) click to toggle source
# File lib/straightedge/gosu/presenters/grid_presenter.rb, line 2
def display(grid) #, scale: 10.0)
  cell_presenter = QuadrilateralPresenter.new.on(@surface)
  grid.each_cell do |cell| 
    #puts "--- rendering cell in #{cell.color}"
    cell_presenter.display(cell)
  end
end