Latest 0.1.0
Homepage https://github.com/everlof/NameThatColor
License MIT
Platforms ios 8.0
Authors

Introduction

A library that defines 1500+ names of colors. The naming has been taken from http://chir.ag/projects/ntc/). However, euclidean distance is used instead to find the color closest.

Usage

let myColor = UIColor.red

myColor.name // "Red"

let anotherColor = UIColor(red: 0xEE/0xFF, green: 0xD9/0xFF, blue: 0xC4/0xFF, alpha: 1.0)

anotherColor.name //  "Almond"

Installation

CocoaPods:

Add the line pod "NameThatColor" to your Podfile

Carthage:

Add the line github "everlof/NameThatColor" to your Cartfile

Latest podspec

{
    "name": "NameThatColor",
    "version": "0.1.0",
    "summary": "Names around 1500 colors",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/everlof/NameThatColor",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "everlof": "[email protected]"
    },
    "source": {
        "git": "https://github.com/everlof/NameThatColor.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "NameThatColor/*.swift",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This