inset


Description:

public void inset (float d_x, float d_y)

Normalizes the this and offsets its origin by the d_x and d_y values; the size is adjusted by (2 * d_x, 2 * d_y).

If d_x and d_y are positive the size of the rectangle is decreased; if the values are negative, the size of the rectangle is increased.

If the resulting rectangle has a negative width or height, the size is set to 0.

Parameters:

this

a Rect

d_x

an horizontal value; a positive d_x will create an inset rectangle, and a negative value will create a larger rectangle

d_y

a vertical value; a positive d_x will create an inset rectangle, and a negative value will create a larger rectangle