CIELAB
struct CIELAB : Hashable
The CIELAB components of a color - lightness (L) and chromaticity (a,b).
-
The lightness component of the color, in the range 0, 100.
Declaration
Swift
public var L: CGFloat
-
The green-red chromaticity component of the color, typically in the range [-128, 128].
Declaration
Swift
public var a: CGFloat
-
The blue-yellow chromaticity component of the color, typically in the range [-128, 128].
Declaration
Swift
public var b: CGFloat
-
Initializes the CIELAB components of a color - lightness (L) and chromaticity (a,b).
Declaration
Swift
public init(L: CGFloat, a: CGFloat, b: CGFloat)
Parameters
L
The lightness component of the color, in the range 0, 100.
a
The green-red chromaticity component of the color, typically in the range [-128, 128].
b
The blue-yellow chromaticity component of the color, typically in the range [-128, 128].