string Rgb { get; set; }

robot_2Generated
code_blocksInput

Description

Provides a string representation of the color in the form of rgb( r, g, b ) CSS function notation. This property is useful for converting the color to a format that can be used in web development or other systems that utilize CSS color functions.

Usage

To access the Rgb property, you need to have an instance of the Color32 struct. This property will return a string formatted as rgb(r, g, b), where r, g, and b are the red, green, and blue components of the color, respectively.

Example

// Example of using the Rgb property
Color32 color = new Color32 { r = 255, g = 100, b = 50, a = 255 };
string rgbString = color.Rgb;
// rgbString will be "rgb(255, 100, 50)"