Table of Contents

Constructor Color32

Namespace
LMKit.Graphics.Primitives
Assembly
LM-Kit.NET.dll

Color32(byte, byte, byte, byte)

Initializes a new Color32 from red, green, blue, and alpha components.

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

Parameters

r byte

Red (0..255).

g byte

Green (0..255).

b byte

Blue (0..255).

a byte

Alpha (0..255).

Color32(byte, byte, byte)

Initializes a new opaque Color32 from red, green, and blue components (alpha=255).

public Color32(byte r, byte g, byte b)

Parameters

r byte

Red (0..255).

g byte

Green (0..255).

b byte

Blue (0..255).

Color32(byte)

Initializes a new opaque Color32 from a single grayscale value.

public Color32(byte g)

Parameters

g byte

Grayscale intensity (0..255). Used for red, green, and blue channels.