Sha256: 3dc1446a34e5f3ead771f6e85dab30feb6fbd456c8a2ba9af113bb0993aa520f
Contents?: true
Size: 322 Bytes
Versions: 1
Compression:
Stored size: 322 Bytes
Contents
class HexagonPresenter < Straightedge::Gosu::Presenter def display(poly) c = Straightedge::Colors.hex_value(poly.color) @surface.draw_triangle(*colorize(poly.left_triangle, c)) @surface.draw_quad( *colorize(poly.center_quad, c)) @surface.draw_triangle(*colorize(poly.right_triangle, c)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
straightedge-gosu-0.1.0 | lib/straightedge/gosu/presenters/hexagon_presenter.rb |