Skip to content

kyounh12/MedianCut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published