@classmethod<EOL><INDENT>def scale(cls, *scaling):<DEDENT>
if len(scaling) == <NUM_LIT:1>:<EOL><INDENT>sx = sy = float(scaling[<NUM_LIT:0>])<EOL><DEDENT>else:<EOL><INDENT>sx, sy = scaling<EOL><DEDENT>return tuple.__new__(cls, (sx, <NUM_LIT:0.0>, <NUM_LIT:0.0>, <NUM_LIT:0.0>, sy, <NUM_LIT:0.0>, <NUM_LIT:0.0>, <NUM_LIT:0.0>, <NUM_LIT:1.0>))<EOL>
Create a scaling transform from a scalar or vector.

        :param scaling: The scaling factor. A scalar value will
            scale in both dimensions equally. A vector scaling
            value scales the dimensions independently.
        :type scaling: float or sequence
        :rtype: Affine