CIExyY

Implements IComponentModel<T>, IComponentModel, IEquatable<T>

Declaration

[Serializable]
public struct CIExyY : IComponentModel<CIExyY>, IComponentModel

Description

The CIE xyY components of a color - chromaticity (x,y) and luminance (Y).

Properties

xThe x-axis chromaticity coordinate of the color in the range [0..1].
yThe y-axis chromaticity coordinate of the color in the range [0..1].
YThe luminance component of the color in the range [0..100].
Item[int]Gets or sets the component at the specified index.

Constructors

CIExyYCreates new CIE xyY components from the given values.

Methods

CopyReturns a copy of the components.
SetConverts a color to the components and sets them as the new values.
MixReturns 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.
EqualsDetermines if the components are equal to another.
GetHashCodeReturns the hash code of the components.
ToStringConverts the components to a string.
ToColorConverts the components to a color.
ToXYZConverts the components to CIEXYZ components.
ToCCTConverts the components to a CCT temperature in Kelvin.

Operators

Equality
Inequality
Explicit