CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

MedianCut 1.0.2

MedianCut 1.0.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2020
SPMSupports SPM

Maintained by Moly.



MedianCut 1.0.2

  • By
  • junseok_lee

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, [email protected]

License

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