LMS

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


Declaration

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

Description

The LMS (long, medium, short) components of a color.

Properties

LThe long cone cell of the human eye.
MThe medium cone cell of the human eye.
SThe short cone cell of the human eye.
Item[int]Gets or sets the component at the specified index.

Constructors

LMSCreates new LMS 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.
ApplyApplies the RGB matrix to the components.
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.

Operators

Equality
Inequality
Explicit