Class: Straightedge::Gosu::Presenter

Inherits:
Presenter
  • Object
show all
Defined in:
lib/straightedge/gosu/presenters.rb

Direct Known Subclasses

HexagonPresenter, QuadrilateralPresenter

Instance Method Summary collapse

Instance Method Details

#colorize(coords, color) ⇒ Object



3
4
5
# File 'lib/straightedge/gosu/presenters.rb', line 3

def colorize(coords, color)
  coords.map { |c| c + [color] }.flatten
end