Color32 32位颜色

Struct

Representation of RGBA colors in 32 bit format

表示32位格式RGBA颜色。

Each color component is a byte value with a range from 0 to 255.

每个颜色组件的字节值范围从0到255。

Components (r,g,b) define a color in RGB color space. Alpha component (a)  defines transparency - alpha of 255 is completely opaque, alpha of zero is completely  transparent.

组件 (r,g,b) 在RGB颜色空间内定义一个颜色。 Alpha组件(a) 定义透明度 ― alpha 值是 255 是完全不透明,alpha值是0表示完全透明。

Variables变量

  • r
    Red component of the color.
          颜色中的红色组件。
  • g
    Green component of the color.
          颜色中的绿色组件。
  • b
    Blue component of the color.
          颜色中的蓝色组件。
  • a
    Alpha component of the color.
          颜色中的Alpha组件。

Constructors构造器

  • Color32
    Constructs a new Color with given r, g, b, a components.
          用给定的r,g,b,a组件构造一个新的颜色。

Functions函数

  • ToString
    Returns a nicely formatted string of this color.
          返回该颜色一个格式化好的字符串。

Class Functions类函数

  • operator Color32
    Color32 can be implicitly converted to and from Color.
  • operator Color
    Color32 can be implicitly converted to and from Color.
  • Lerp
    Interpolates between colors a and b by t.
,