code: function clearCanvas () {
              context.clearRect(0, 0, canvas.width, canvas.height);
  
              if (opts.backgroundColor) {
                  context.fillStyle = opts.backgroundColor;
                  context.fillRect(0, 0, canvas.width, canvas.height);
              }
          }
docs: Erase everything in the canvase