Method GenerateHarmony
GenerateHarmony(int, float, float, float, float, float, float, float, float, float)
Generates a random triadic color harmony. You can specify two angle offsets (from a randomly selected reference), and an angle range around each of those.
public static List<Color> GenerateHarmony(int colorCount, float offsetAngle1, float offsetAngle2, float rangeAngle0, float rangeAngle1, float rangeAngle2, float saturation, float saturationRange, float luminance, float luminanceRange)
Parameters
colorCount
intThe number of colors to generate.
offsetAngle1
floatThe first offset angle.
offsetAngle2
floatThe second offset angle.
rangeAngle0
floatThe range of the first angle.
rangeAngle1
floatThe range of the second angle.
rangeAngle2
floatThe range of the third angle.
saturation
floatThe saturation of the colors.
saturationRange
floatThe range of the saturation.
luminance
floatThe luminance of the colors.
luminanceRange
float
Returns
Remarks
You can also specify base level saturation and luminance, and a range for each.
GenerateHarmony(int, float, float, float, float, float, float, float, float, float, float)
public static List<Color> GenerateHarmony(int colorCount, float referenceAngle, float offsetAngle1, float offsetAngle2, float rangeAngle0, float rangeAngle1, float rangeAngle2, float saturation, float saturationRange, float luminance, float luminanceRange)
Parameters
colorCount
intreferenceAngle
floatoffsetAngle1
floatoffsetAngle2
floatrangeAngle0
floatrangeAngle1
floatrangeAngle2
floatsaturation
floatsaturationRange
floatluminance
floatluminanceRange
float