Creates a new color object that has the same color space and component values as the receiver, but the specified alpha component.
- macOS 10.0+
The opacity value of the new
NSColor object. If the receiver’s color space doesn’t include an alpha component, the receiver is returned.
A subclass with explicit opacity components should override this method to return a color with the specified alpha.