JesseRubio / ColorUtil

Black body temperature to color in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ColorUtil

Language License: MIT

Black body temperature to color in swift.

Installation

Carthage

Add the following in your project's Cartfile:

github "jesserubio/ColorUtil" ~> 0.1.0

Usage

Temperature to color and color to temperature methods are extensions of UIColor class. No other classes are required!

  1. Kelvin to UIColor
UIColor.init(temperature: 6500)
// (255, 249, 253)
  1. UIColor to Kelvin
color.temperature

About

Black body temperature to color in Swift.


Languages

Language:Swift 88.5%Language:Objective-C 11.5%