Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sozorogami/SOZOChromoplast
- Owner: sozorogami
- License: mit
- Created: 2014-11-12T00:58:17.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-11T21:49:38.000Z (over 9 years ago)
- Last Synced: 2024-10-29T01:46:57.040Z (3 months ago)
- Language: Objective-C
- Homepage:
- Size: 4.67 MB
- Stars: 509
- Watchers: 15
- Forks: 40
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - 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. (OOM-Leaks-Crash / Find The Most Relevant Colors)
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.