codeandtheory / YCoreUI

Core components for iOS and tvOS to accelerate building user interfaces in code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for LCh color space to UIColor

mpospese opened this issue · comments

Add a UIColor initializer that supports the LCh color space.
This will require importing a couple of gists to support CieLAB colors but also creating a new "friendly" UIColor initializer to refer to the CieLAB version internally.

public func init(luminance: CGFloat, chroma: CGFloat, hue: CGFloat)

where luminance is 0.0 – 1.0
chroma is 0 – ~180
hue is in degrees not radians