C# Class UnityEngine.Color32

ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
a byte
b byte
g byte
r byte

Public Methods

Method Description
Color32 ( byte r, byte g, byte b, byte a ) : System

Constructs a new Color32 with given r, g, b, a components.

Lerp ( Color32 a, Color32 b, float t ) : Color32

Linearly interpolates between colors a and b by t.

LerpUnclamped ( Color32 a, Color32 b, float t ) : Color32

Linearly interpolates between colors a and b by t.

ToString ( ) : string

Returns a nicely formatted string of this color.

ToString ( string format ) : string

Returns a nicely formatted string of this color.

Method Details

Color32() public method

Constructs a new Color32 with given r, g, b, a components.

public Color32 ( byte r, byte g, byte b, byte a ) : System
r byte
g byte
b byte
a byte
return System

Lerp() public static method

Linearly interpolates between colors a and b by t.

public static Lerp ( Color32 a, Color32 b, float t ) : Color32
a Color32
b Color32
t float
return Color32

LerpUnclamped() public static method

Linearly interpolates between colors a and b by t.

public static LerpUnclamped ( Color32 a, Color32 b, float t ) : Color32
a Color32
b Color32
t float
return Color32

ToString() public method

Returns a nicely formatted string of this color.

public ToString ( ) : string
return string

ToString() public method

Returns a nicely formatted string of this color.

public ToString ( string format ) : string
format string
return string

Property Details

a public_oe property

Alpha component of the color.

public byte a
return byte

b public_oe property

Blue component of the color.

public byte b
return byte

g public_oe property

Green component of the color.

public byte g
return byte

r public_oe property

Red component of the color.

public byte r
return byte