class QuadrilateralPresenter
Public Instance Methods
display(rect)
click to toggle source
# File lib/straightedge/gosu/presenters/quadrilateral_presenter.rb, line 2 def display(rect) real_coords = rect.corners.map { |xy| [xy.x + rect.x, xy.y + rect.y ] } colored_coords = colorize(real_coords, Straightedge::Colors.hex_value(rect.color)) #puts "--- rendering #{rect.color} at #{rect.x}, #{rect.y}" @surface.draw_quad(*colored_coords) end