Instance Method
color(withRed:green:blue:alpha:) colorWithRed:green:blue:alpha: colorWithRed_green_blue_alpha_
Returns an RGB color with the given components in the color space.
Declaration
func color(
withRed red: CGFloat,
green: CGFloat,
blue: CGFloat,
alpha: CGFloat
) -> NSColorDeclaration
- (NSColor *) colorWithRed:(CGFloat) red
green:(CGFloat) green
blue:(CGFloat) blue
alpha:(CGFloat) alpha;Declaration
colorWithRed_green_blue_alpha_(
red: float,
green: float,
blue: float,
alpha: float
) -> NSColorDiscussion
The color space must be using the RGB color space model; otherwise, an exception is thrown.