Random.RandomAnalogous
Extension Method in Random
Declaration
public static Color[] RandomAnalogous(this Color baseColor, int amount, float spread = 60F, float min = -1F, float max = 1F)Description
Creates an analogous harmony of the color, a set of colors located next to each other on the color wheel.
Parameters
| baseColor | The base color to create the harmony from. |
| amount | The amount of colors to create (default=3). |
| spread | The amount of hue change from start to end [0...360] (default=60). |
| min | The minimum amount of change in the hue spread [-1..1] (default=-1). |
| max | The maximum amount of change in the hue spread [-1..1] (default=1). |
Returns
| Color[] | An array of colors forming the harmony. |