# `GSPenProtocol curveTo:off1:off2:`

*Instance Method*

Draw a cubic bezier with an arbitrary number of control points.

## Declaration

```swift
func curve(to pt: NSPoint, off1: NSPoint, off2: NSPoint)
```

```objc
- (void) curveTo:(NSPoint) pt off1:(NSPoint) off1 off2:(NSPoint) off2;
```

```python
curveTo_off1_off2_(pt: NSPoint, off1: NSPoint, off2: NSPoint)
```

## Discussion

The last point specified is on-curve, all others are off-curve (control) points. If the number of control points is > 2, the segment is split into multiple bezier segments.

