YUV

struct YUV : Hashable

The Y′UV components of a color - luma (Y′) and chroma (U,V).

  • Y

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

    Declaration

    Swift

    public var Y: CGFloat
  • U

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

    Declaration

    Swift

    public var U: CGFloat
  • V

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

    Declaration

    Swift

    public var V: CGFloat
  • Initializes the Y′UV components of a color - luma (Y′) and chroma (U,V).

    Declaration

    Swift

    public init(Y: CGFloat, U: CGFloat, V: CGFloat)

    Parameters

    Y

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

    U

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

    V

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