A 32bit color, commonly used by things like vertex buffers.
The functionality on this is purposely left minimal so we're encouraged to use the regular Color struct.
A 32bit color, commonly used by things like vertex buffers.
The functionality on this is purposely left minimal so we're encouraged to use the regular Color struct.
Member Name | Summary |
---|---|
FromRgb | Creates a Color32 from a 32-bit RGB value. |
FromRgba | Creates a Color32 from a 32-bit RGBA value. |
Min | Returns the component-wise minimum of two Color32 values. |
Max | Returns the component-wise maximum of two Color32 values. |
Read | Reads a Color32 from a binary stream. |
Parse | Parses a string to a nullable Color32. |
White | A constant representing a fully opaque color white. |
Black | A constant representing a fully opaque color black. |
Transparent | A constant representing a fully transparent color. |
Member Name | Summary |
---|---|
ToColor | Convert this object to Color. |
Write | Writes the Color32 to a binary stream. |
Hex | String representation of the form "#RRGGBB[AA]". |
Rgba | String representation in the form of rgba( r, g, b, a ) css function notation. |
Rgb | String representation in the form of rgb( r, g, b ) css function notation. |
RgbaInt | Integer representation of the form 0xRRGGBBAA. |
RgbInt | Integer representation of the form 0xRRGGBB. |
RawInt | Integer representation of the form 0xAABBGGRR as used by native code. |
r | The red color component, in range of 0-255. |
g | The green color component, in range of 0-255. |
b | The blue color component, in range of 0-255. |
a | The alpha/transparency color component, in range of 0 (fully transparent) to 255 (fully opaque). |