translate method

translate

Adds a translation transformation by moving the canvas and its origin x horzontally and y vertically on the grid.

def translate(self, x, y):
    ...
ParameterTypeDescription
xfloatDistance to move in the horizontal direction.
yfloatDistance to move in the vertical direction.

See Also