offset method

offset

Adjusts the location of this rectangle by the specified amount.

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

offset

Adjusts the location of this rectangle by the specified amount.

def offset(self, x, y):
    ...
ParameterTypeDescription
xintThe horizontal offset.
yintThe vertical offset.

See Also