Skip to content

JesseRubio/ColorUtil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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