<!--
{
  "availability" : [
    "macOS: -",
    "swift: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSColor/init(CIColor:)-3rxsk",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSColor(cm)colorWithCIColor:::SYNTHESIZED::c:objc(cs)NSColor"
  },
  "title" : "init(CIColor:)"
}
-->

# init(CIColor:)

Creates a color object from the specified Core Image color.

```
init(CIColor color: CIColor)
```

## Parameters

`color`

The Core Image color to convert.

## Return Value

The `NSColor` object corresponding to the specified Core Image color.

## Discussion

The method raises if the color space and components associated with `color` are `nil` or invalid.

---

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)