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

grayscale double

Color(double, double)

Creates a new color instance from the given grayscale and alpha values.

public Color(double grayscale, double alpha)

Parameters

grayscale double
alpha double

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

red double
green double
blue double

Color(double, double, double, double)

Describes an RGBA color.

public Color(double red, double green, double blue, double alpha)

Parameters

red double
green double
blue double
alpha double

Remarks

Creates a new color instance from the given channels.

Properties

Alpha

Gets the color's alpha channel.

public double Alpha { get; }

Property Value

double

Blue

Gets the color's blue channel.

public double Blue { get; }

Property Value

double

Grayscale

Gets the color's grayscale intensity. The alpha channel is not considered in this computation.

public double Grayscale { get; }

Property Value

double

Green

Gets the color's green channel.

public double Green { get; }

Property Value

double

Red

Gets the color's red channel.

public double Red { get; }

Property Value

double

Methods

Over(Color)

Applies the "over" alpha blending operator to this color and the given other color.

public Color Over(Color Other)

Parameters

Other Color

Returns

Color

ToString()

public override string ToString()

Returns

string