module GosuLighting::Rectangle
Public Instance Methods
center_x()
click to toggle source
# File lib/gosu_lighting/rectangle.rb, line 7 def center_x x + width * 0.5 end
center_y()
click to toggle source
# File lib/gosu_lighting/rectangle.rb, line 11 def center_y y + height * 0.5 end
draw_lit(source)
click to toggle source
# File lib/gosu_lighting/rectangle.rb, line 3 def draw_lit source self.draw source.shadow_rectangle self end