CLIColor
@interface CLIColor : NSObject
This class represents an NSColor replacement for CLI projects that don’t link with AppKit
-
Convenience method for creating a
CLIColorinstance from RGBA paramsDeclaration
Objective-C
+ (nonnull instancetype)colorWithCalibratedRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;Parameters
redred channel, between 0 and 1
greengreen channel, between 0 and 1
blueblue channel, between 0 and 1
alphaalpha channel, between 0 and 1
-
Get the RGBA components from a
CLIColorDeclaration
Objective-C
- (void)getRed:(nullable CGFloat *)red green:(nullable CGFloat *)green blue:(nullable CGFloat *)blue alpha:(nullable CGFloat *)alpha;Parameters
redred channel, between 0 and 1
greengreen channel, between 0 and 1
blueblue channel, between 0 and 1
alphaalpha channel, between 0 and 1
View on GitHub
CLIColor Class Reference