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
LThe lightness component of the color, in the range 0, 100.
aThe green-red chromaticity component of the color, typically in the range [-128, 128].
bThe blue-yellow chromaticity component of the color, typically in the range [-128, 128].
View on GitHub
CIELAB Structure Reference