Table of Contents

Struct Color

Namespace
BasilEngine.Rendering
Assembly
BasilEngine.dll
[Disabled]
public struct Color
Inherited Members

Constructors

Color(float, float, float, float)

Initializes a new Color.

public Color(float r, float g, float b, float a = 1)

Parameters

r float

Red component (0-1).

g float

Green component (0-1).

b float

Blue component (0-1).

a float

Alpha component (0-1).

Properties

A

Alpha component of the color.

public float A { get; set; }

Property Value

float

B

Blue component of the color.

public float B { get; set; }

Property Value

float

Black

Solid black color (0,0,0,1).

public static Color Black { get; }

Property Value

Color

Blue

Solid blue color.

public static Color Blue { get; }

Property Value

Color

G

Green component of the color.

public float G { get; set; }

Property Value

float

Gold

Gold color using normalized RGBA values.

public static Color Gold { get; }

Property Value

Color

Green

Solid green color.

public static Color Green { get; }

Property Value

Color

Magenta

Solid magenta color.

public static Color Magenta { get; }

Property Value

Color

R

Red component of the color.

public float R { get; set; }

Property Value

float

Red

Solid red color.

public static Color Red { get; }

Property Value

Color

White

Solid white color (1,1,1,1).

public static Color White { get; }

Property Value

Color

Yellow

Solid yellow color.

public static Color Yellow { get; }

Property Value

Color

Operators

implicit operator Color(Color32)

Converts a Color32 to a normalized Color.

public static implicit operator Color(Color32 color32)

Parameters

color32 Color32

Color with 8-bit components.

Returns

Color