|
@@ -381,16 +381,6 @@ THREE.Color.prototype = {
|
|
|
|
|
|
},
|
|
|
|
|
|
- sub: function( color ) {
|
|
|
-
|
|
|
- this.r = Math.max( 0, this.r - color.r );
|
|
|
- this.g = Math.max( 0, this.g - color.g );
|
|
|
- this.b = Math.max( 0, this.b - color.b );
|
|
|
-
|
|
|
- return this;
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
add: function ( color ) {
|
|
|
|
|
|
this.r += color.r;
|
|
@@ -421,6 +411,16 @@ THREE.Color.prototype = {
|
|
|
|
|
|
},
|
|
|
|
|
|
+ sub: function( color ) {
|
|
|
+
|
|
|
+ this.r = Math.max( 0, this.r - color.r );
|
|
|
+ this.g = Math.max( 0, this.g - color.g );
|
|
|
+ this.b = Math.max( 0, this.b - color.b );
|
|
|
+
|
|
|
+ return this;
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
multiply: function ( color ) {
|
|
|
|
|
|
this.r *= color.r;
|