Esempio n. 1
0
 public void SetUp()
 {
     color1     = new HalfBlockColor(ColorModel.RED);
     color2     = new HalfBlockColor(ColorModel.BLUE);
     colorPair1 = new ColorPair(color1, color2);
     colorPair2 = new ColorPair(color2, color1);
 }
        public AbstractHalfBlockColor CombineColor(AbstractHalfBlockColor first, AbstractHalfBlockColor second)
        {
            ColorPair key = new ColorPair(first, second);
            AbstractHalfBlockColor _result;

            _subtractiveColorMap.TryGetValue(key, out _result);
            return(_result);
        }
 private void AddMapping(ColorPair _pair, AbstractHalfBlockColor _result)
 {
     _subtractiveColorMap.Add(_pair, _result);
 }