translate method

translate

Translates the matrix by the specified offset values.

def translate(self, tx, ty):
    ...
ParameterTypeDescription
txfloatThe offset value along the x-axis.
tyfloatThe offset value along the y-axis.

translate

Translates the matrix by the specified offset values in the specified order.

def translate(self, offset_x, offset_y, order):
    ...
ParameterTypeDescription
offset_xfloatThe offset value along the x-axis.
offset_yfloatThe offset value along the y-axis.
orderSvgMatrixOrderThe order in which translation is applied.

See Also