Example #1
0
 /// <summary>
 /// 重置颜色
 /// </summary>
 public void Reset(Color color, int value = 30)
 {
     _cNormal = color;
     if (color == Color.Empty)
     {
         _cMove = Color.Empty;
         _cDown = Color.Empty;
     }
     else
     {
         _cMove = color.AddLight(value);
         _cDown = color.AddLight(-value);
     }
     OnValueChange();
 }