示例#1
0
 public Color4(Color3 color, float a) : this(color.r, color.g, color.b, a)
 {
 }
示例#2
0
 public Color3b(Color3 color)
 {
     r = (byte)System.Math.Min(System.Math.Max(color.r * 255, 0), 255);
     g = (byte)System.Math.Min(System.Math.Max(color.g * 255, 0), 255);
     b = (byte)System.Math.Min(System.Math.Max(color.b * 255, 0), 255);
 }
示例#3
0
 public Color4b(Color3 color, int a) : this(color, (byte)a)
 {
 }