js / WaddaColor

Swift library for naming colors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WaddaColor

Swift library for a naming a color, based on a closest match to the colors in Ingrid Sundbergs Color Thesaurus.

Just give it any color and it will return the name of that color, and what a color it is.

Usage

Via the UIColor extention:

UIColor.blackColor().name // Black

or via a WaddaColor instance:

let wadda = WaddaColor(color: UIColor.orange())
let match = wadda.closestMatch()
return match.name // Tangerine

Example app

The Xcode project contains a sample app target called WhatTheColor

screenshot

Author

WaddaColor was made by Johan Sørensen

Credits

Ingrid Sundberg named all the colors in her Color Thesaurus post. Amazing.

License

MIT, see LICENSE

About

Swift library for naming colors

License:MIT License


Languages

Language:Swift 98.7%Language:Objective-C 1.3%