YIQ

struct YIQ : Hashable

The Y′IQ components of a color - luma (Y′) and chroma (I,Q).

  • Y

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

    Declaration

    Swift

    public var Y: CGFloat
  • I

    The orange-blue chroma component of the color, in the range [-0.596, 0.596].

    Declaration

    Swift

    public var I: CGFloat
  • Q

    The purple-green chroma component of the color, in the range [-0.523, 0.523].

    Declaration

    Swift

    public var Q: CGFloat
  • Initializes the Y′IQ components of a color - luma (Y′) and chroma (I,Q).

    Declaration

    Swift

    public init(Y: CGFloat, I: CGFloat, Q: CGFloat)

    Parameters

    Y

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

    I

    The orange-blue chroma component of the color, in the range [-0.596, 0.596].

    Q

    The purple-green chroma component of the color, in the range [-0.523, 0.523].