---
title: "init(path:)"
framework: spritekit
role: symbol
role_heading: Initializer
path: "spritekit/skshapenode/init(path:)"
---

# init(path:)

Creates a shape node from a Core Graphics path.

## Declaration

```swift
convenience init(path: CGPath)
```

## Parameters

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

## Return Value

Return Value A new shape node.

## See Also

### Creating a Shape from a Path

- [init(path:centered:)](spritekit/skshapenode/init(path:centered:).md)
- [path](spritekit/skshapenode/path.md)
