ctor(duration, red, green, blue) {
    cc.ActionInterval.prototype.ctor.call(this);
    // use a plain object so that the values can go negative
    // cocos doesn't allow negative color values
    this._to = { r: 0, g: 0, b: 0 };
    this._from = { r: 0, g: 0, b: 0 };

    blue !== undefined && this.initWithDuration(duration, red, green, blue);
  }
Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
@param {Number} duration
@param {Number} red
@param {Number} green
@param {Number} blue