Contents

usingColorSpaceName(_:)

Creates a new color object whose color is the same as the receiver’s, except that the new color object is in the specified color space.

Declaration

func usingColorSpaceName(_ name: NSColorSpaceName) -> NSColor?

Parameters

  • name:

    The name of the color space containing the new NSColor object.

Return Value

The new NSColor object or nil if the specified conversion cannot be done.

See Also

Related Documentation

Deprecated