Adjustment.Hues
Extension Method in Adjustment
Declaration
public static Color[] Hues(this Color baseColor, float degrees = 30F, float offset = 0F)
Description
Generates hues of the base color with a given increment of degrees. For example, an increment of 30 will generate 12 different hues (360/30 = 12).
Parameters
baseColor | The base color to generate new colors from. |
degrees | The hue increment in degrees [-360..360] (default=30). |
offset | The optional hue offset in degrees [-360..360] (default=0). |
Returns
Color[] | The array of hue shifted colors. |
Overload
Declaration
public static Color[] Hues(this Color baseColor, int amount, float offset = 0F)
Description
Generates a given amount of hues from the base color.
Parameters
baseColor | The base color to generate new colors from. |
amount | The amount of hues to generate. |
offset | The optional hue offset in degrees [-360..360] (default=0). |
Returns
Color[] | The array of hue shifted colors. |