Returns a random color out of 8 preset colors.
Returns a random color out of 8 preset colors.
The Color.Random
property provides a simple way to obtain a random color from a predefined set of 8 colors. This can be useful for applications where you need a quick and easy way to generate a color without specifying exact RGB values.
// Example of using Color.Random Color randomColor = Color.Random; // Use the random color in your application // For example, setting a material color Material myMaterial = new Material(); myMaterial.Color = randomColor;