Initializer

init(cgColor:)

Creates a color object using the specified Core Graphics color.

Declaration

init?(cgColor: CGColor)

Parameters

cgColor

The Core Graphics color reference.

Return Value

An NSColor instance.

Discussion

This method may return nil.

See Also

Converting Other Types of Color Objects

init(ciColor: CIColor)

Creates a a color object from the specified Core Image color.