浏览代码

#18051: Use common name for Color type argument

Xavier Cho 7 年之前
父节点
当前提交
94edd92248
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      modules/mono/glue/cs_files/Color.cs

+ 5 - 5
modules/mono/glue/cs_files/Color.cs

@@ -263,14 +263,14 @@ namespace Godot
             );
         }
 
-        public Color LinearInterpolate(Color b, float t)
+        public Color LinearInterpolate(Color c, float t)
         {
             var res = this;
 
-            res.r += t * (b.r - r);
-            res.g += t * (b.g - g);
-            res.b += t * (b.b - this.b);
-            res.a += t * (b.a - a);
+            res.r += t * (c.r - r);
+            res.g += t * (c.g - g);
+            res.b += t * (c.b - b);
+            res.a += t * (c.a - a);
 
             return res;
         }