Table of Contents

Struct Color32

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

Constructors

Color32(byte, byte, byte, byte)

Initializes a new Color32.

public Color32(byte r, byte g, byte b, byte a = 255)

Parameters

r byte

Red component (0-255).

g byte

Green component (0-255).

b byte

Blue component (0-255).

a byte

Alpha component (0-255).

Properties

A

Alpha component of the color.

public byte A { get; set; }

Property Value

byte

B

Blue component of the color.

public byte B { get; set; }

Property Value

byte

Black

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

public static Color32 Black { get; }

Property Value

Color32

Blue

Solid blue color.

public static Color32 Blue { get; }

Property Value

Color32

G

Green component of the color.

public byte G { get; set; }

Property Value

byte

Gold

Gold color using 8-bit components.

public static Color32 Gold { get; }

Property Value

Color32

Green

Solid green color.

public static Color32 Green { get; }

Property Value

Color32

Magenta

Solid magenta color.

public static Color32 Magenta { get; }

Property Value

Color32

R

Red component of the color.

public byte R { get; set; }

Property Value

byte

Red

Solid red color.

public static Color32 Red { get; }

Property Value

Color32

White

Solid white color (255,255,255,255).

public static Color32 White { get; }

Property Value

Color32

Yellow

Solid yellow color.

public static Color32 Yellow { get; }

Property Value

Color32

Operators

implicit operator Color32(Color)

Converts a normalized Color to a Color32.

public static implicit operator Color32(Color color)

Parameters

color Color

Color with normalized channels.

Returns

Color32