Harmonies.Square

Extension Method in Harmonies

Declaration

public static Color[] Square(this Color baseColor, int amount = 4, float variance = 0.25F)

Description

Creates a tetradic (square) harmony of the color, four colors evenly spaced around the color wheel to form a square (90° hue shifts).

Parameters

baseColorThe base color to create the harmony from.
amountThe amount of colors to create (default=4).
varianceThe amount of variance in tints and shades when generating more than 4 colors [0..1] (default=0.25).

Returns

Color[]An array of colors forming the harmony.