offset method

offset

Adjusts the location of this rectangle by the specified amount.

def offset(self, pos):
    ...
ParameterTypeDescription
posPointFThe amount to offset the location.

offset

Adjusts the location of this rectangle by the specified amount.

def offset(self, x, y):
    ...
ParameterTypeDescription
xfloatThe amount to offset the location horizontally.
yfloatThe amount to offset the location vertically.

See Also