<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKInk-swift.struct/init(_:color:)-2rx09",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "s:9PencilKit5PKInkV_5colorAcA12PKInkingToolV7InkTypeO_So7UIColorCtcfc"
  },
  "title" : "init(_:color:)"
}
-->

# init(_:color:)

Creates a new ink, specifying its type and color.

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

## Parameters

`inkType`

The type of ink represented by one of the available [`PKInkingTool.InkType`](/documentation/PencilKit/PKInkingTool-swift.struct/InkType-swift.enum) enumerations.

`color`

The color of the ink; the default is black.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)