YPbPr
struct YPbPr : Hashable
The Y′PbPr components of a color - luma (Y′) and chroma (Pb,Pr).
-
The luma component of the color, in the range 0, 1.
Declaration
Swift
public var Y: CGFloat -
The blue-difference chroma component of the color, in the range [-0.5, 0.5].
Declaration
Swift
public var Pb: CGFloat -
The red-difference chroma component of the color, in the range [-0.5, 0.5].
Declaration
Swift
public var Pr: CGFloat -
Initializes the Y′PbPr components of a color - luma (Y′) and chroma (Pb,Pr).
Parameters
YThe luma component of the color, in the range 0, 1.
PbThe blue-difference chroma component of the color, in the range [-0.5, 0.5].
PrThe red-difference chroma component of the color, in the range [-0.5, 0.5].
View on GitHub
YPbPr Structure Reference