public Color(int r, int g, int b, int i = 1) { R = r; G = g; B = b; I = i; this.colorName = Color.Name.none; }
public Color(Color.Name name) { colorName = name; if (colorName == Color.Name.red) { R = 255; G = 0; B = 0; I = 1; } else if (name == Color.Name.blue) { R = 0; G = 0; B = 255; I = 1; } else if (name == Color.Name.green) { R = 0; G = 255; B = 0; I = 1; } else if (name == Color.Name.pink) { R = 255; G = 192; B = 203; I = 1; } else if (name == Color.Name.yellow) { R = 255; G = 255; B = 00; I = 1; } else if (name == Color.Name.white) { R = 255; G = 255; B = 255; I = 1; } else if (name == Color.Name.black) { R = 0; G = 0; B = 0; I = 1; } }
public Color(Color.Name name) { colorName = name; if (name == Color.Name.white) { R = 255; G = 0; B = 0; I = 1; } else { R = 0; G = 0; B = 255; I = 1; } }
public Color(Color.Name name) { //To do: Otros colores. colorName = name; if (name == Color.Name.white) { R = 255; G = 0; B = 0; I = 1; } else { R = 0; G = 0; B = 255; I = 1; } }
public Color(Color.Name name) { //To Do: Otros colores colorName = name; if (name == Color.Name.red) { R = 255; G = 0; B = 0; I = 1; } else { R = 0; G = 0; B = 255; I = 1; } }
private Color(Color.Name name) { colorName = name; if (name == Color.Name.red) { r = 255; g = 0; b = 0; } else if (name == Color.Name.blue) { r = 0; g = 0; b = 255; } else if (name == Color.Name.black) { r = 0; g = 0; b = 0; } else if (name == Color.Name.white) { r = 255; g = 255; b = 255; } }
public Color(Color.Name name) { }