YPbPr

struct YPbPr : Hashable

The Y′PbPr components of a color - luma (Y′) and chroma (Pb,Pr).

  • Y

    The luma component of the color, in the range 0, 1.

    Declaration

    Swift

    public var Y: CGFloat
  • Pb

    The blue-difference chroma component of the color, in the range [-0.5, 0.5].

    Declaration

    Swift

    public var Pb: CGFloat
  • Pr

    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).

    Declaration

    Swift

    public init(Y: CGFloat, Pb: CGFloat, Pr: CGFloat)

    Parameters

    Y

    The luma component of the color, in the range 0, 1.

    Pb

    The blue-difference chroma component of the color, in the range [-0.5, 0.5].

    Pr

    The red-difference chroma component of the color, in the range [-0.5, 0.5].