TestsTested | ✓ |
LangLanguage | CC |
License | MIT |
ReleasedLast Release | Feb 2015 |
Maintained by Michael Van Milligan.
UIColor Category with various colourspace transformations, neighbourhood colour generations, and ∆-E metrics.
Currently there are three pieces to this library:
Below are the currently supported colourspace conversions:
Note: Please see UIColor+T23ColourSpaces.h for the format of values that are returned.
1 The default currently uses the sRGB working matrices for converting to/from XYZ space. Please see rgb_working_matrices in colourspaces.c for more detail
Below are the currently supported neighbourhood generations
Note: Please see EasyRGB's definition of these neighbourhoods.
Below are the currently supported colour distance metrics
Note: Please see Wikipedia for more information regarding ∆-E
UIColor+T23ColourSpaces
+ (UIColor *)colorWithRed:yellow:blue:alpha:
+ (UIColor *)colorWithHexString:alpha:
- (UIColor *)initWithRed:yellow:blue:alpha:
- (UIColor *)initWithHexString:alpha:
- (NSString *)hexString
- (BOOL)getX:Y:Z:alpha:
- (BOOL)getHunterLStar:aStar:bStar:alpha:
- (BOOL)getLStar:aStar:bStar:alpha:
- (BOOL)getLStar:uStar:vStar:alpha:
- (BOOL)getLStar:cStar:hStarAB:alpha:
- (BOOL)getLStar:cStar:hStarUV:alpha:
- (BOOL)getCyan:magenta:yellow:black:alpha:
- (BOOL)getHue:saturation:lightness:alpha:
- (BOOL)getHue:saturation:intensity:alpha:
- (NSArray *)getTriadic
- (NSArray *)getSplitComplements
- (NSArray *)getAnalogous
- (UIColor *)getComplement
- (CGFloat)getDistanceMetricBetweenUIColor:withOptions:
UIColor Swift Extension
- init(red: CGFloat, yellow: CGFloat, blue: CGFloat, alpha: CGFloat)
- init(hexString: String, alpha: CGFloat)
- var hue:CGFloat { get }
- var saturation:CGFloat { get }
- var brightness:CGFloat { get }
- var red:CGFloat { get }
- var green:CGFloat { get }
- var blue:CGFloat { get }
- var alpha:CGFloat { get }
- var hexString:String { get }
- func getHSB() -> HSB
- func getRGB() -> RGB
- func getXYZ() -> XYZ
- func getHLAB() -> HLAB
- func getLAB() -> LAB
- func getLUV() -> LUV
- func getLCHab() -> LCHab
- func getLCHuv() -> LCHuv
- func getCMYK() -> CMYK
- func getHSI() -> HSI
- func getHSL() -> HSL
- func getTriadic() -> (thisColor: UIColor, right: UIColor, left: UIColor)
- func getSplitCompliments() -> (thisColor: UIColor, right: UIColor, left: UIColor)
- func getAnalogous() -> (thisColor: UIColor, right: UIColor, left: UIColor)
- func getCompliment() -> UIColor
- func getDistanceBetweenUIColor(compare: UIColor, options: ColourDistanceOptions) -> CGFloat
#import "UIColor+T23ColourSpaces.h"
wherever you want to use the API.Colour.swift
to your Xcode project.If you would like to see an example of this library in use check out our other toy project ColorPalette.
Releases are tagged in the git commit history using (mostly) semantic versioning. Check out the releases and release notes for each version.
Designed & maintained by Thirteen23 Developers. Distributed with the MIT license.