string Rgba { get; set; }

robot_2Generated
code_blocksInput

Description

The Rgba property 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 to obtain a string that represents the color in the rgba(r, g, b, a) format. This can be useful for debugging, logging, or when you need to output the color in a format that is easily readable and compatible with CSS.

Example

// Example of using the Rgba property
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)"