Table of Contents

Operator implicit operator

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

implicit operator Color(int)

Implicit conversion from int to Color, via the Color(int) costructor.

[Pure]
public static implicit operator Color(int rgba)

Parameters

rgba int

Returns

Color

implicit operator Color(uint)

Implicit conversion from uint to Color, via the Color(uint) costructor.

[Pure]
public static implicit operator Color(uint u)

Parameters

u uint

Returns

Color

implicit operator Color(ColorName16)

Implicit conversion from GetClosestNamedColor16(Color) to Color via lookup from Terminal.Gui.ColorExtensions.ColorName16ToColorMap.

[Pure]
public static implicit operator Color(ColorName16 colorName)

Parameters

colorName ColorName16

Returns

Color

implicit operator Color(Vector4)

Implicit conversion from Vector4 to Color, where (X, Y, Z, W) is (A,R, G,B), via Color(int, int, int, int).

[Pure]
public static implicit operator Color(Vector4 v)

Parameters

v Vector4

Returns

Color

implicit operator Color(Vector3)

Implicit conversion from Vector3, where X = R, Y = G, and Z = B.

[Pure]
public static implicit operator Color(Vector3 v)

Parameters

v Vector3

Returns

Color

implicit operator int(Color)

Implicit conversion from Color to int by returning the value of the Rgba field.

[Pure]
public static implicit operator int(Color color)

Parameters

color Color

Returns

int

implicit operator uint(Color)

Implicit conversion from Color to uint by returning the value of the Argb field.

[Pure]
public static implicit operator uint(Color color)

Parameters

color Color

Returns

uint

implicit operator Vector4(Color)

Implicit conversion to Vector3, where X = R, Y = G, and Z = B.

[Pure]
public static implicit operator Vector4(Color color)

Parameters

color Color

Returns

Vector4