code: function() {
          var height = this.root.height;
          var width = this.root.width;
          this.canvas.clearRect(0, 0, width, height);
          this.features = {};
          if (this.hitDetection) {
              this.hitContext.clearRect(0, 0, width, height);
          }
      }
docs: Method: clear
  Clear all vectors from the renderer.