Browse Source

Make Color.setScalar returns this. (#9885)

aardgoose 9 năm trước cách đây
mục cha
commit
4ce415a6a8
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/math/Color.js

+ 2 - 0
src/math/Color.js

@@ -53,6 +53,8 @@ Color.prototype = {
 		this.g = scalar;
 		this.b = scalar;
 
+		return this;
+
 	},
 
 	setHex: function ( hex ) {