# `GSPenProtocol lineTo:`

*Instance Method*

Draw a straight line from the current point to ‘pt’.

## Declaration

```swift
func linePen(to pt: NSPoint)
```

```objc
- (void) lineTo:(NSPoint) pt;
```

```python
lineTo_(pt: NSPoint)
```

