C# Класс UnityEngine.Color32

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
a byte
b byte
g byte
r byte

Открытые методы

Метод Описание
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.

Описание методов

Color32() публичный Метод

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
Результат System

Lerp() публичный статический Метод

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
Результат Color32

LerpUnclamped() публичный статический Метод

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
Результат Color32

ToString() публичный Метод

Returns a nicely formatted string of this color.

public ToString ( ) : string
Результат string

ToString() публичный Метод

Returns a nicely formatted string of this color.

public ToString ( string format ) : string
format string
Результат string

Описание свойств

a публичное свойство

Alpha component of the color.

public byte a
Результат byte

b публичное свойство

Blue component of the color.

public byte b
Результат byte

g публичное свойство

Green component of the color.

public byte g
Результат byte

r публичное свойство

Red component of the color.

public byte r
Результат byte