YUV
Struct in Zigurous.ColorPro
Implements IComponentModelEncoded<T>, IComponentModelEncoded, IComponentModel<T>, IComponentModel, IEquatable<T>
Declaration
[Serializable]
public struct YUV : IComponentModelEncoded<YUV>, IComponentModelEncoded, IComponentModel<YUV>, IComponentModelDescription
The Y′UV components of a color - luma (Y′) and chroma (U,V).
Properties
| 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]. |
| Item[int] | Gets or sets the component at the specified index. |
Constructors
| YUV | Creates new Y′UV components from the given values. |
Methods
| Copy | Returns a copy of the components. |
| Set | Converts a color to the components and sets them as the new values. |
| Mix | Returns the result of mixing the color with another color using a weight between [0..1]. A weight of 0 results in the first color, and a weight of 1 results in the second color. |
| Equals | Determines if the components are equal to another. |
| GetHashCode | Returns the hash code of the components. |
| ToString | Converts the components to a string. |
| ToColor | Converts the components to a color. |
| ToYIQ | Converts the components to YIQ components. |
Operators
| Equality | |
| Inequality | |
| Explicit |