Latest 0.3
Homepage https://github.com/betzerra/TDImageColors
License MIT
Platforms ios 6.0, requires ARC
Authors

TDImageColors

iOS Library used to detect a number of most used colors in a UIImage.

TDImageColors

Use

/*  anImage is the UIImage you want to analyze.
 *  count is the maximum amount of colors you want to get.
 *  threshold is the 'tolerance' between colors or distance you want to get. */

TDImageColors *imageColors = [[TDImageColors alloc] initWithImage:anImage count:64 threshold:0.25f];

//  Boom! Here's your generated color palette
NSArray *paletteColors = imageColors.colors;

Installation

Using CocoaPods

pod '[email protected]', '~> 0.3'

Traditional method

Just download the source files and drag them into your project.

Latest podspec

{
    "name": "[email protected]",
    "version": "0.3",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "iOS Library used to detect a number of most used colors in a UIImage. Forked from timominous project.",
    "homepage": "https://github.com/betzerra/TDImageColors",
    "authors": {
        "Ezequiel Alejandro Becerra": "[email protected]"
    },
    "source": {
        "git": "https://github.com/betzerra/TDImageColors.git",
        "tag": "0.3"
    },
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "TDImageColors/**/*.{h,m}",
    "preserve_paths": "*"
}

Pin It on Pinterest

Share This