Struct Color
- Namespace
- Pixie
- Assembly
- Pixie.dll
Describes an RGBA color.
public readonly struct Color
- Inherited Members
Remarks
Creates a new color instance from the given channels.
Constructors
Color(double)
Creates a new color instance from the given grayscale value. Alpha is set to one.
public Color(double grayscale)
Parameters
grayscaledouble
Color(double, double)
Creates a new color instance from the given grayscale and alpha values.
public Color(double grayscale, double alpha)
Parameters
Color(double, double, double)
Creates a new color instance from the given RGB channels. Alpha is set to one.
public Color(double red, double green, double blue)
Parameters
Color(double, double, double, double)
Describes an RGBA color.
public Color(double red, double green, double blue, double alpha)
Parameters
Remarks
Creates a new color instance from the given channels.
Properties
Alpha
Gets the color's alpha channel.
public double Alpha { get; }
Property Value
Blue
Gets the color's blue channel.
public double Blue { get; }
Property Value
Grayscale
Gets the color's grayscale intensity. The alpha channel is not considered in this computation.
public double Grayscale { get; }
Property Value
Green
Gets the color's green channel.
public double Green { get; }
Property Value
Red
Gets the color's red channel.
public double Red { get; }
Property Value
Methods
Over(Color)
Applies the "over" alpha blending operator to this color and the given other color.
public Color Over(Color Other)
Parameters
OtherColor
Returns
ToString()
public override string ToString()