src/utils/color.js
function (color) {
            this.glArray[0] = me.Math.clamp(this.glArray[0] + color.glArray[0], 0, 1);
            this.glArray[1] = me.Math.clamp(this.glArray[1] + color.glArray[1], 0, 1);
            this.glArray[2] = me.Math.clamp(this.glArray[2] + color.glArray[2], 0, 1);
            this.glArray[3] = (this.glArray[3] + color.glArray[3]) / 2;

            return this;
        }
function (color) {
            this.glArray[0] = me.Math.clamp(this.glArray[0] + color.glArray[0], 0, 1);
            this.glArray[1] = me.Math.clamp(this.glArray[1] + color.glArray[1], 0, 1);
            this.glArray[2] = me.Math.clamp(this.glArray[2] + color.glArray[2], 0, 1);
            this.glArray[3] = (this.glArray[3] + color.glArray[3]) / 2;

            return this;
        }
function ( color ) { this . glArray [ 0 ] = me . Math . clamp ( this . glArray [ 0 ] + color . glArray [ 0 ] , 0 , 1 ) ; this . glArray [ 1 ] = me . Math . clamp ( this . glArray [ 1 ] + color . glArray [ 1 ] , 0 , 1 ) ; this . glArray [ 2 ] = me . Math . clamp ( this . glArray [ 2 ] + color . glArray [ 2 ] , 0 , 1 ) ; this . glArray [ 3 ] = ( this . glArray [ 3 ] + color . glArray [ 3 ] ) / 2 ; return this ; }
Blend this color with the given one using addition.
@name add
@memberOf me.Color
@function
@param {me.Color} color
@return {me.Color} Reference to this object for method chaining
Blend this color with the given one using addition .