Instance Method
color(withWhite:alpha:) colorWithWhite:alpha: colorWithWhite_alpha_
Returns a grayscale color with the given components in the color space.
Declaration
func color(withWhite white: CGFloat, alpha: CGFloat) -> NSColorDeclaration
- (NSColor *) colorWithWhite:(CGFloat) white alpha:(CGFloat) alpha;Declaration
colorWithWhite_alpha_(white: float, alpha: float) -> NSColorDiscussion
The color space must be using the grayscale color space model; otherwise, an exception is thrown.