lib/gamebox/lib/rect.rb
# Increase the Rect's size is the x and y directions, while keeping the
# same center point. For best results, expand by an even number.
# X and y inflation can be given as an Array or as separate values.
Increase the Rect's size is the x and y directions, while keeping the
same center point. For best results, expand by an even number.
X and y inflation can be given as an Array or as separate values.
Increase the Rect ' s size is the x and y directions while keeping the same center point . For best results expand by an even number . X and y inflation can be given as an Array or as separate values .
def inflate!(x,y)
    self[0] -= x.div(2)
    self[1] -= y.div(2)
    self[2] += x
    self[3] += y
    return self
  end
def inflate! ( x , y ) self [ 0 ] -= x . div ( 2 ) self [ 1 ] -= y . div ( 2 ) self [ 2 ] += x self [ 3 ] += y return self end
Increase the Rect's size is the x and y directions, while keeping the
same center point.
Increase the Rect ' s size is the x and y directions while keeping the same center point .
x
<not_specific>
y
<not_specific>