Skip to content

Inspired by functionality in iTunes' album view, SOZOChromoplast finds the most relevant colors in a given UIImage quickly and painlessly, giving you the perfect color scheme every time.

License

Notifications You must be signed in to change notification settings

CurrentMobile/SOZOChromoplast

 
 

Repository files navigation

SOZOChromoplast

Description

Inspired by functionality in iTunes' album view, SOZOChromoplast finds the most relevant colors in a given UIImage quickly and painlessly, giving you the perfect color scheme every time.

analbumcover

Installing via Cocoapods

Add the following line to your Podfile and run pod install

pod 'SOZOChromoplast'

Usage

Simple!

// Get an image
UIImage *someImage = [UIImage imageNamed:@"someImage.png"];

// Instantiate your chromoplast
SOZOChromoplast *chromoplast = [[SOZOChromoplast alloc] initWithImage:someImage];

// Use your colors!
self.view.backgroundColor = chromoplast.dominantColor;
self.label1.textColor = chromoplast.firstHighlight;
self.label2.textColor = chromoplast.secondHighlight;

For more, see the example project.

About

Inspired by functionality in iTunes' album view, SOZOChromoplast finds the most relevant colors in a given UIImage quickly and painlessly, giving you the perfect color scheme every time.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 94.4%
  • Ruby 5.6%