Пример #1
0
 internal Color(int _R, int _G, int _B, string _name, string _code)
 {
     A           = 1.0;
     R           = _R / 255.0;
     G           = _G / 255.0;
     B           = _B / 255.0;
     Name        = _name;
     htmlCode    = _code;
     predefinied = true;
     ColorDic.Add(_name, this);
 }
Пример #2
0
 internal Color(double _R, double _G, double _B, double _A, string _name)
 {
     A           = _A;
     R           = _R;
     G           = _G;
     B           = _B;
     predefinied = false;
     Name        = _name;
     htmlCode    = "";
     ColorDic.Add(_name, this);
 }