Contents

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