---
title: "init(CIColor:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nscolor/init(cicolor:)-3rxsk"
---

# init(CIColor:)

Creates a color object from the specified Core Image color.

## Declaration

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

## Parameters

- `color`: The Core Image color to convert.

## Return Value

Return Value The NSColor object corresponding to the specified Core Image color.

## Discussion

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