Exemplo n.º 1
0
 //#if (t.HasAlpha && !t1.HasAlpha) { // build constructor from Color3 with explicit alpha
 public __type__(__t1.Name__ color, __ftype__ alpha)
 {
     //# channels.ForEach(Meta.VecFields, (c, vf) => {
     __c__ = __convert__(color.__c__);
     //# });
     A = alpha;
 }
Exemplo n.º 2
0
 //# } // !isDouble
 //# foreach (var t1 in Meta.ColorTypes) {
 //#     var convert = t.FieldType != t1.FieldType
 //#         ? "Col." + t.FieldType.Caps + "From" + t1.FieldType.Caps
 //#         : "";
 public __type__(__t1.Name__ color)
 {
     //# channels.ForEach(c => {
     __c__ = __convert__(color.__c__);
     //# });
     //# if (t.HasAlpha) {
     //#     if (t1.HasAlpha) {
     A = __convert__(color.A);
     //#     } else {
     A = __t.MaxValue__;
     //#     }
     //# }
 }