コード例 #1
0
ファイル: Program.cs プロジェクト: jr110/Tarea-Figuras
 public Color(int R, int G, int B, int I)
 {
     this.R       = R;
     this.G       = G;
     this.B       = B;
     this.I       = I;
     this.colores = Color.name.azul;
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: jr110/Tarea-Figuras
 public Color(Color.name col)
 {
     colores = col;
     if (col == Color.name.rojo)
     {
         R = 128; G = 0; B = 0; I = 1;
     }
     else
     {
         R = 0; G = 0; B = 255; I = 1;
     }
 }