Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sozorogami/SOZOChromoplast

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.
https://github.com/sozorogami/SOZOChromoplast

Last synced: about 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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](https://cloud.githubusercontent.com/assets/1407680/5003713/8e430538-6a55-11e4-8f68-f5432cd5d1b3.gif)

### Installing via Cocoapods

Add the following line to your Podfile and run `pod install`

```
pod 'SOZOChromoplast'
```

### Usage

Simple!

```obj-c
// 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.