Random.RandomComplementary
Extension Method in Random
Declaration
public static Color[] RandomComplementary(this Color baseColor, int amount, float variance = 0.25F, float min = 0F, float max = 1F)
Description
Creates a complementary harmony of the color, two colors located opposite to each other on the color wheel.
Parameters
baseColor | The base color to create the harmony from. |
amount | The amount of colors to create. |
variance | The amount of variance in tints and shades [0..1] (default=0.25). |
min | The minimum amount of change in the hue shift [0..1] (default=0). |
max | The maximum amount of change in the hue shift [0..1] (default=1). |
Returns
Color[] | An array of colors forming the harmony. |