string Rgb { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Rgb property provides a string representation of the color in the CSS rgb function notation. This format is commonly used in web development to specify colors in a human-readable way. The format is rgb(r, g, b), where r, g, and b are the red, green, and blue components of the color, respectively.

Usage

Use the Rgb property when you need to obtain a string representation of a color in the rgb format. This can be useful for debugging, logging, or when interfacing with systems that require color input in this format.

Example

// Example of using the Rgb property
Color color = new Color(0.5f, 0.4f, 0.3f);
string rgbString = color.Rgb;
// rgbString will be "rgb(128, 102, 77)"