Random.RandomLighter
Extension Method in Random
Declaration
public static Color[] RandomLighter(this Color baseColor, int amount, float min = 0F, float max = 1F)Description
Generates a given amount of random lighter colors from the base color. The amount of change in lightness can be constrained between a minimum and maximum range if desired.
Parameters
| baseColor | The base color to generate new colors from. |
| amount | The amount of random colors to generate. |
| min | The minimum amount of change in lightness [0..1] (default=0). |
| max | The maximum amount of change in lightness [0..1] (default=1). |
Returns
| Color[] | An array of random lighter colors. |