Sha256: 8bcc3f49cd6f44a99f5d4cfb9df5fb40e78ab5fad361b5b2006d0134afa6faca

Contents?: true

Size: 700 Bytes

Versions: 1

Compression:

Stored size: 700 Bytes

Contents

module Straightedge::Gosu
  class Presenter < Straightedge::Presenter
    def colorize(coords, color)
      coords.map { |c| c + [color] }.flatten
    end
  end
end

require 'straightedge/gosu/presenters/quadrilateral_presenter'
require 'straightedge/gosu/presenters/text_presenter'
require 'straightedge/gosu/presenters/grid_presenter'
require 'straightedge/gosu/presenters/hexagon_presenter'


Straightedge.config.presenter_classes = {
  Straightedge::Figures::Grid          => GridPresenter,
  Straightedge::Figures::Quadrilateral => QuadrilateralPresenter,
  Straightedge::Figures::Hexagon       => HexagonPresenter,

  Straightedge::Figures::Label => TextPresenter,
  String => TextPresenter,
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
straightedge-gosu-0.1.0 lib/straightedge/gosu/presenters.rb