scale method

scale

Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix.

Returns

The resulting matrix.

def scale(self, scale_factor):
    ...
ParameterTypeDescription
scale_factorfloatScale factor in both X and Y.

See Also