struct in UnityEngine
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表示完全透明。
Color32 | Constructs a new Color with given r, g, b, a components. 使用给定r、g、b、a通道创建一个新的颜色。 |
ToString | Returns a nicely formatted string of this color. 返回该颜色已格式化好的字符串。 |
Lerp | Linearly interpolates between colors a and b by t. 通过t在颜色a和b之间线性插值。 |
LerpUnclamped | Linearly interpolates between colors a and b by t. 通过t在颜色a和b之间线性插值。 |