Random.RandomTint<T>
Extension Method in Random
Declaration
public static Color RandomTint<T>(this Color baseColor, float min = 0F, float max = 1F)
where T : struct, IComponentModel
Description
Generates a random tint from the base color. The amount of change in the tint can be constrained between a minimum and maximum range if desired.
Type Parameters
T | The type of component model to use. |
Parameters
baseColor | The base color to tint. |
min | The minimum amount of change in the tint [0..1] (default=0). |
max | The maximum amount of change in the tint [0..1] (default=1). |
Returns
Color | A random tint. |