init(ink:path:transform:mask:randomSeed:)
Creates a macOS stroke with the line properties, path, transform, mask, and random seed that you specify.
Declaration
init(ink: PKInk, path: PKStrokePath, transform: CGAffineTransform = .identity, mask: NSBezierPath? = nil, randomSeed: UInt32)Parameters
- ink:
The Pkinkreference the framework uses to render this stroke.
- path:
The B-spline path that describes this stroke.
- transform:
The Cgaffinetransform to apply to this stroke. Defaults to Cgaffinetransformidentity.
- mask:
The pretransform mask the framework uses to clip the rendering of the stroke.
- randomSeed:
The random seed for the stroke.