This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// An extension to provide conversion to and from CIE 1931 XYZ colors. | |
extension UIColor { | |
/// The CIE 1931 XYZ components of a color - luminance (Y) and chromaticity (X,Z). | |
struct CIEXYZ: Hashable { | |
/// A mix of cone response curves chosen to be orthogonal to luminance and | |
/// non-negative, in the range [0, 95.047]. | |
var X: CGFloat | |
/// The luminance component of the color, in the range [0, 100]. |