scale method

scale

Scales the matrix by the specified scale factors uniformly.

def scale(self, scale_x, scale_y):
    ...
ParameterTypeDescription
scale_xfloatThe uniform scale factor.
scale_yfloatThe uniform scale factor.

scale

Scales the matrix by the specified scale factors in the specified order.

def scale(self, scale_x, scale_y, order):
    ...
ParameterTypeDescription
scale_xfloatThe scale factor along the x-axis.
scale_yfloatThe scale factor along the y-axis.
orderSvgMatrixOrderThe order in which scaling is applied.

See Also