Creates and returns an NSColor object whose component values are a weighted sum of the receiver’s and the specified color object's.
Original signature is '- (NSColor *)blendedColorWithFraction:(CGFloat)fraction ofColor:(NSColor *)color'
Available in Mac OS X v10.0 and later.
Declaration Syntax
Parameters
- fraction (CGFloat)
- The amount of the color to blend with the receiver's color. The method converts color and a copy of the receiver to RGB, and then sets each component of the returned color to fraction of color’s value plus 1 – fraction of the receiver’s.
- color (NSColor)
- The color to blend with the receiver's color.
Return Value
The resulting color object or nil if the colors can’t be converted.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)