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
colorCountintThe number of colors to generate.
offsetAngle1floatThe first offset angle.
offsetAngle2floatThe second offset angle.
rangeAngle0floatThe range of the first angle.
rangeAngle1floatThe range of the second angle.
rangeAngle2floatThe range of the third angle.
saturationfloatThe saturation of the colors.
saturationRangefloatThe range of the saturation.
luminancefloatThe luminance of the colors.
luminanceRangefloatThe range of the luminance.
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
colorCountintreferenceAnglefloatoffsetAngle1floatoffsetAngle2floatrangeAngle0floatrangeAngle1floatrangeAngle2floatsaturationfloatsaturationRangefloatluminancefloatluminanceRangefloat