src/utils/color.js
function (r, g, b, alpha) {
            // Private initialization: copy Color value directly
            if (r instanceof me.Color) {
                this.glArray.set(r.glArray);
                return r;
            }
            this.r = r;
            this.g = g;
            this.b = b;
            this.alpha = alpha;
            return this;
        }
function (r, g, b, alpha) {
            // Private initialization: copy Color value directly
            if (r instanceof me.Color) {
                this.glArray.set(r.glArray);
                return r;
            }
            this.r = r;
            this.g = g;
            this.b = b;
            this.alpha = alpha;
            return this;
        }
function ( r , g , b , alpha ) { // Private initialization: copy Color value directly if ( r instanceof me . Color ) { this . glArray . set ( r . glArray ) ; return r ; } this . r = r ; this . g = g ; this . b = b ; this . alpha = alpha ; return this ; }
Set this color to the specified value.
@name setColor
@memberOf me.Color
@function
@param {Number} r red component [0 .. 255]
@param {Number} g green component [0 .. 255]
@param {Number} b blue component [0 .. 255]
@param {Number} [alpha=1.0] alpha value [0.0 .. 1.0]
@return {me.Color} Reference to this object for method chaining
Set this color to the specified value .