Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.03 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.03 KB

MedianCut

License Platform

A simple color extraction library based on median cut algorithm.

Example

// Init
let medianCut = MedianCut(colorDepth: 4, resizeTargetSize: CGSize(width:256, height: 256))

// Get Colors
medianCut.getColors(image: your_image) { (succeeded, colors) in
  if (succeeded) {
    // ...do sth with colors
  } else {
    // ...handle errors
  }
}

Installation

MedianCut is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'MedianCut'

Author

junseok_lee, kyounh12@snu.ac.kr

License

MedianCut is available under the MIT license. See the LICENSE file for more info.