Exemple #1
0
        Color GetNextColor()
        {
            Color currentColor = _currentColor.GetColor();

            _currentColor = _currentColor.GetNextNode();
            return(currentColor);
        }
Exemple #2
0
 // Several colors
 public Palette(Color[] Colors)
 {
     for (int i = 0; i < Colors.Length; i++)
     {
         _colors.Add(new ColorNode(Colors[i]));
         if (i > 0)
         {
             _colors[i - 1].SetNextColor(_colors[i]);
         }
         if (i == _colors.Count - 1)
         {
             _colors[i].SetNextColor(_colors[0]);
         }
     }
     _currentColor = _colors[0];
     state         = 1;
 }
Exemple #3
0
 public void SetNextColor(ColorNode NextColorNode)
 {
     _nextNode = NextColorNode;
 }