예제 #1
0
 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
 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;
     }
 }