Instance Method
matchingColor(from:)matchingColorFromColor:matchingColorFromColor_
Returns the given color converted to match the color space of the font.
Declaration
func matchingColor(from color: NSColor) -> NSColorDeclaration
- (NSColor *) matchingColorFromColor:(NSColor *) color;Declaration
matchingColorFromColor_(color: NSColor) -> NSColorDiscussion
Only RGB colors are changed to match the font’s color space. Any other color is returned as-is.
See Also
Colors
The RGB color space used by document colors in the font.
Changes the color space used by document colors in the font.
Passes each document color to the given block and updates it if the block returns a new color.