translate method

translate

Adds a translate transform to the builder.

Returns

The current TransformBuilder instance.

def translate(self, tx, ty):
    ...
ParameterTypeDescription
txfloatThe translation along the x-axis.
tyfloatThe translation along the y-axis. Defaults to 0.

See Also