Esempio n. 1
0
        /**
         * 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));
        }
 /**
  * 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));
 }