---
title: "init(_:color:)"
framework: pencilkit
role: symbol
role_heading: Initializer
path: "pencilkit/pkink-swift.struct/init(_:color:)-2rx09"
---

# init(_:color:)

Creates a new ink, specifying its type and color.

## Declaration

```swift
init(_ inkType: PKInk.InkType, color: UIColor = UIColor.black)
```

## Parameters

- `inkType`: The type of ink represented by one of the available doc://com.apple.pencilkit/documentation/PencilKit/PKInkingTool-swift.struct/InkType-swift.enum enumerations.
- `color`: The color of the ink; the default is black.

## See Also

### Creating an ink object

- [init(_:color:)](pencilkit/pkink-swift.struct/init(_:color:)-7w46l.md)
- [PKInk.InkType](pencilkit/pkink-swift.struct/inktype-swift.typealias.md)
