Table of Contents

Method FromRgb

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

FromRgb(int)

Creates an opaque Color32 from a packed 24-bit RGB integer (0xRRGGBB).

public static Color32 FromRgb(int rgb)

Parameters

rgb int

Packed integer in the form 0xRRGGBB.

Returns

Color32

A Color32 instance with alpha=255.

FromRgb(int, byte)

Creates a Color32 from a packed 24-bit RGB integer (0xRRGGBB) and an alpha.

public static Color32 FromRgb(int rgb, byte a)

Parameters

rgb int

Packed integer in the form 0xRRGGBB.

a byte

Alpha (0..255).

Returns

Color32

A Color32 instance representing the color.