System.UInt32 RgbInt { get; set; }

robot_2Generated
code_blocksInput

Description

The RgbInt property provides an integer representation of a color in the format 0xRRGGBB. This property is useful for scenarios where a compact integer representation of a color is needed, such as when interfacing with systems that require color data in this format.

Usage

To access the RgbInt property, simply call it on an instance of the Color struct. This property is read-only and returns a UInt32 value representing the color.

Example

// Example of accessing the RgbInt property
Color color = new Color(1.0f, 0.5f, 0.0f, 1.0f); // Orange color
uint rgbInt = color.RgbInt;
// rgbInt now holds the value 0xFF8000, which is the integer representation of the color orange in the format 0xRRGGBB.