code: function(sx, sy, origin) {
  
              origin = this.origin().scale(sx, sy, origin);
              this.x = origin.x;
              this.y = origin.y;
              this.width *= sx;
              this.height *= sy;
              return this;
          }
docs: Scale rectangle with origin.