Description
The Color32.White
property is a static member of the Color32
struct, representing a constant color value for white. This color is fully opaque, meaning its alpha component is set to the maximum value of 255. The RGB components are all set to 255, which is the standard representation for the color white in the RGB color model.
Usage
Use Color32.White
when you need a predefined, fully opaque white color in your application. This can be useful for setting default colors, backgrounds, or for any graphical element that requires a white color.
Example
// Example of using Color32.White
Color32 myColor = Color32.White;
// Accessing the RGBA components
byte red = myColor.r; // 255
byte green = myColor.g; // 255
byte blue = myColor.b; // 255
byte alpha = myColor.a; // 255
// Converting to a Color struct
Color colorStruct = myColor.ToColor();