Contents

init(splinePoints:count:)

Creates a shape node from a series of spline points.

Declaration

convenience init(splinePoints points: UnsafeMutablePointer<CGPoint>, count numPoints: Int)

Parameters

  • points:

    An array of Core Graphics points.

  • numPoints:

    The number of points in the array.

Mentioned in

Return Value

A new shape node is created. The node is created with a path that starts at the first point in the array, joining each pair of points with a quadratic curve. The control points are calculated automatically based on previous points in the array.

See Also

Creating a Shape from an Array of Points