Declaration

func color(
    withWhite white: CGFloat,
    alpha: CGFloat
) -> NSColor

Declaration

- (NSColor *) colorWithWhite:(CGFloat) white
                       alpha:(CGFloat) alpha;

Declaration

colorWithWhite_alpha_(
    white: float,
    alpha: float
) -> NSColor

Discussion

The color space must be using the grayscale color space model; otherwise, an exception is thrown.