YCbCr

struct YCbCr : Hashable

The Y′CbCr components of a color - luma (Y′) and chroma (Cb,Cr).

  • Y

    The luma component of the color, in the full range 0, 255.

    Declaration

    Swift

    public var Y: CGFloat
  • Cb

    The blue-difference chroma component of the color, in the full range [0, 255].

    Declaration

    Swift

    public var Cb: CGFloat
  • Cr

    The red-difference chroma component of the color, in the full range [0, 255].

    Declaration

    Swift

    public var Cr: CGFloat
  • Initializes the Y′CbCr components of a color - luma (Y′) and chroma (Cb,Cr).

    Declaration

    Swift

    public init(Y: CGFloat, Cb: CGFloat, Cr: CGFloat)

    Parameters

    Y

    The luma component of the color, in the full range 0, 255.

    Cb

    The blue-difference chroma component of the color, in the full range [0, 255].

    Cr

    The red-difference chroma component of the color, in the full range [0, 255].