Esempio n. 1
0
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()
Esempio n. 2
0
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()
Esempio n. 3
0
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()
Esempio n. 4
0
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()
Esempio n. 5
0
def rotate(angle):
	# Rotate the art board by an angle.
	Transform = NSAffineTransform.alloc().init()
	Transform.rotateByDegrees(angle)
	Transform.concat()
Esempio n. 6
0
def translate(x, y):
	# Translate the art board pane to "x", "y"
	Transform = NSAffineTransform.alloc().init()
	Transform.translateXBy_yBy_(x, y)
	Transform.concat()
Esempio n. 7
0
def rotate(angle):
    # Rotate the art board by an angle.
    Transform = NSAffineTransform.alloc().init()
    Transform.rotateByDegrees_(angle)
    Transform.concat()
Esempio n. 8
0
def translate(x, y):
    # Translate the art board pane to "x", "y"
    Transform = NSAffineTransform.alloc().init()
    Transform.translateXBy_yBy_(x, y)
    Transform.concat()