Contents

init(ink:strokePath:transform:mask:randomSeed:)

Creates a stroke with the line properties, path, transform, mask, and random seed that you specify.

Declaration

init(ink: PKInk, strokePath: PKStrokePath, transform: CGAffineTransform, mask: UIBezierPath?, randomSeed: UInt32)
init(ink: PKInk, strokePath: PKStrokePath, transform: CGAffineTransform, mask: NSBezierPath?, randomSeed: UInt32)

Parameters

  • ink:

    The Pkinkreference used to render this stroke.

  • strokePath:

    The B-spline path that describes this stroke.

  • transform:

    The Cgaffinetransform to apply to this stroke. Defaults to Cgaffinetransformidentity.

  • mask:

    The pretransform mask used to clip the rendering of the stroke.

  • randomSeed:

    The random seed for the stroke.

See Also

Creating a stroke object