# `GSPenProtocol closePath`

*Instance Method*

Close the current sub path. You must call either pen.closePath() or pen.endPath() after each sub path.

## Declaration

```swift
func closePath()
```

```objc
- (void) closePath;
```

```python
closePath()
```

