translate method

translate

Applies the specified translation vector to the current transformation matrix.

def translate(self, x, y):
    ...
ParameterTypeDescription
xfloatThe x offset.
yfloatThe y offset.

See Also