b0VIM 7.3@›TÂqßcThoughtworkerjoe-mbp.local~Thoughtworker/Dropbox/Development/etc/straightedge-gosu/lib/straightedge/gosu/renderers/rectangle_presenter.rb 3210#"! Utpadr Þ æÒ©€uK(Õ¥›š€ú ð è â Þ Ý end end end end @surface.draw_quad(*coords) coords = coordinates_with_colors(figure.x, figure.y, figure.width, figure.height, figure.color).flatten def display(figure) end coordinates(x,y,w,h,s).map { |c| c + [color] } def coordinates_with_colors(x,y,w,h,s=1,color=Gosu::Color::WHITE) end [[x1,y1],[x1,y2],[x2,y1],[x2,y2]] x1,y1,x2,y2 = x*s, y*s, (x+w)*s, (y+h)*s s = scale def coordinates(x,y,w,h,scale=1.0) class RectanglePresenter < Presenter module Presentersmodule Straightedge::Gosu