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.
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.
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 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)"