Random.Colors
Static Method in Random
Declaration
public static Color[] Colors(int amount, float hueMin = 0F, float hueMax = 360F, float saturationMin = 0F, float saturationMax = 1F, float valueMin = 0F, float valueMax = 1F, float alphaMin = 1F, float alphaMax = 1F)
Description
Returns a random array of colors.
Parameters
amount | The number of colors to return. |
hueMin | The minimum hue [0..360] (default=0). |
hueMax | The maximum hue [0..360] (default=360). |
saturationMin | The minimum saturation [0..1] (default=0). |
saturationMax | The maximum saturation [0..1] (default=1). |
valueMin | The minimum value [0..1] (default=0). |
valueMax | The maximum value [0..1] (default=1). |
alphaMin | The minimum alpha [0..1] (default=1). |
alphaMax | The maximum alpha [0..1] (default=1). |
Returns
Color[] | An array of random colors. |