Random.RandomTint

Extension Method in Random

Declaration

public static Color RandomTint(this Color baseColor, float min = 0F, float max = 1F)

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.

Parameters

baseColorThe base color to tint.
minThe minimum amount of change in the tint [0..1] (default=0).
maxThe maximum amount of change in the tint [0..1] (default=1).

Returns

ColorA random tint.