Extracts most pure colors from your UIImage or NSImage
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ColorExtractor.xcodeproj Scale down the image so that it extracts faster Jan 20, 2017
ColorExtractor Scale down the image so that it extracts faster Jan 20, 2017
ColorExtractorExampleIOS Add examples Nov 30, 2016
ColorExtractorExampleMac Add examples Nov 30, 2016
.gitignore Initial commit Oct 13, 2016
; Scale down the image so that it extracts faster Jan 20, 2017
LICENSE Initial commit Oct 13, 2016
README.md Scale down the image so that it extracts faster Jan 20, 2017
ios.png Scale down the image so that it extracts faster Jan 20, 2017
mac.png Scale down the image so that it extracts faster Jan 20, 2017

README.md

ColorExtractor

Extracts most pure colors from your UIImage or NSImage, or iOS and MacOS

##Installation Carthage supported

##Code demo

image = UIImage(named: cover!)
        
let colorExtractor = ColorExtractor()

colorExtractor.extractColors(image!)
if let color = colorExtractor.darkVibrant.foundColor {
  self.view.backgroundColor = color.color
}

Standard queries are vibrant, lightVibrant, darkVibrant, muted, lightMuted, darkMuted. Custom queries are also possible, using the extractCustomColors(UIImage, NSArray of ColorQuery objects)

##Example applications I added two example applications in the repository, one for mac and one for iOS. ios.png mac.png