Type Method

shapeNodeWithPath:

Creates a shape node from a Core Graphics path.

Declaration

+ (instancetype)shapeNodeWithPath:(CGPathRef)path;

Parameters

path

The Core Graphics path to use. The path is relative to the node’s origin.

Return Value

A new shape node.

See Also

Creating a Shape from a Path

+ shapeNodeWithPath:centered:

Creates a shape node from a Core Graphics path, centered around its position.

path

The path that defines the shape.