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

baseColorThe base color to generate new colors from.
degreesThe hue increment in degrees [-360..360] (default=30).
offsetThe 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

baseColorThe base color to generate new colors from.
amountThe amount of hues to generate.
offsetThe optional hue offset in degrees [-360..360] (default=0).

Returns

Color[]The array of hue shifted colors.