RGBA

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


Declaration

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

Description

The RGBA (red, green, blue, alpha) components of a color in the range [0..1].

Properties

redThe red component of the color in the range [0..1].
greenThe green component of the color in the range [0..1].
blueThe blue component of the color in the range [0..1].
alphaThe alpha component of the color in the range [0..1].
Item[int]Gets or sets the component at the specified index.

Constructors

RGBACreates new RGBA 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.
ToCMYKConverts the components to CMYK components.
ToHSBConverts the components to HSB components.
ToHSIConverts the components to HSI components.
ToHSLConverts the components to HSL components.
ToHSVConverts the components to HSV components.
ToLMSConverts the components to LMS components.
ToXYZConverts the components to CIEXYZ components.
ToYPbPrConverts the components to YPbPr components.
ToYUVConverts the components to YUV components.

Operators

Equality
Inequality
Explicit
Implicit