string Rgba { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Rgba property of the Color struct provides a string representation of the color in the CSS rgba function notation. This format is commonly used in web development to specify colors with red, green, blue, and alpha (transparency) components.

Usage

Use the Rgba property when you need to obtain a string representation of a color in the rgba(r, g, b, a) format. This can be useful for debugging, logging, or when interfacing with systems that require color input in this format.

Example

Color color = new Color(0.5f, 0.4f, 0.3f, 0.8f);
string rgbaString = color.Rgba;
// rgbaString will be "rgba(128, 102, 77, 0.8)"