Random.RandomHues

Extension Method in Random

Declaration

public static Color[] RandomHues(this Color baseColor, int amount, float min = 0F, float max = 360F)

Description

Generates a given amount of random hues of the base color.

Parameters

baseColorThe base color to generate new colors from.
amountThe amount of random hues to generate.
minThe minimum hue value [0..360] (default=0).
maxThe maximum hue value [0..360] (default=360).

Returns

Color[]An array of random hues.