/** * True when a pair of colors have visibly similar pairs of colors. */ public Boolean IsVisiblySimilarTo(ColorPair otherPair) { if (otherPair == null) { throw new ArgumentNullException(nameof(otherPair)); } return(LighterColor.IsSimilarColor(otherPair.LighterColor) && DarkerColor.IsSimilarColor(otherPair.DarkerColor)); }
public override string ToString() { return(LighterColor.ToString() + " --" + ColorContrast() + "-> " + DarkerColor.ToString()); }
/** * True when a pair of colors have visibly similar pairs of colors. */ public Boolean IsVisiblySimilarTo(ColorPair otherPair) { return(LighterColor.IsSimilarColor(otherPair.LighterColor) && DarkerColor.IsSimilarColor(otherPair.DarkerColor)); }