Random.RandomMonochromatic
Extension Method in Random
Declaration
public static Color[] RandomMonochromatic(this Color baseColor, int amount, float spread = 0.5F, float min = -1F, float max = 1F)
Description
Creates a monochromatic harmony of the color, a set of tints and shades formed from the base color.
Parameters
baseColor | The base color to create the harmony from. |
amount | The amount of colors to create. |
spread | The amount of change from the start to end [0..1] (default=0.5). |
min | The minimum amount of change in the tints and shades [-1..1] (default=-1). |
max | The maximum amount of change in the tints and shades [-1..1] (default=1). |
Returns
Color[] | An array of colors forming the harmony. |