def skew(a, b = None): # Skew the art board by "a", "b", if "b" is not set the art board will be skew with "a" = "b" Transform = NSAffineTransform.alloc().init() if b is None: b = a Transform.shearXBy_yBy_(a, b) Transform.concat()
def skew(a, b=None): # Skew the art board by "a", "b", if "b" is not set the art board will be skew with "a" = "b" Transform = NSAffineTransform.alloc().init() if b is None: b = a Transform.shearXBy_yBy_(a, b) Transform.concat()
def scale(x, y = None): # Scale the art board by "x", "y", if "y" is not set the art board will be scaled proportionally. Transform = NSAffineTransform.alloc().init() if y is None: y = x Transform.scaleXBy_yBy_(x, y) Transform.concat()
def scale(x, y=None): # Scale the art board by "x", "y", if "y" is not set the art board will be scaled proportionally. Transform = NSAffineTransform.alloc().init() if y is None: y = x Transform.scaleXBy_yBy_(x, y) Transform.concat()
def rotate(angle): # Rotate the art board by an angle. Transform = NSAffineTransform.alloc().init() Transform.rotateByDegrees(angle) Transform.concat()
def translate(x, y): # Translate the art board pane to "x", "y" Transform = NSAffineTransform.alloc().init() Transform.translateXBy_yBy_(x, y) Transform.concat()
def rotate(angle): # Rotate the art board by an angle. Transform = NSAffineTransform.alloc().init() Transform.rotateByDegrees_(angle) Transform.concat()