C# Class UnityEngine.Color32

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Свойство Type Description
a byte
b byte
g byte
r byte

Méthodes publiques

Méthode 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 méthode

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
Résultat System

Lerp() public static méthode

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
Résultat Color32

LerpUnclamped() public static méthode

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
Résultat Color32

ToString() public méthode

Returns a nicely formatted string of this color.

public ToString ( ) : string
Résultat string

ToString() public méthode

Returns a nicely formatted string of this color.

public ToString ( string format ) : string
format string
Résultat string

Property Details

a public_oe property

Alpha component of the color.

public byte a
Résultat byte

b public_oe property

Blue component of the color.

public byte b
Résultat byte

g public_oe property

Green component of the color.

public byte g
Résultat byte

r public_oe property

Red component of the color.

public byte r
Résultat byte