code: function (color) {
      if (color === undefined) {
        this.context.fillRect(0, 0, this.canvas.width, this.canvas.height);
      } else {
        let fillstyle = this.context.fillStyle;
        this.fillStyle(color);
        this.context.fillRect(0, 0, this.canvas.width, this.canvas.height);
        this.fillStyle(fillstyle);
      }
    }
docs: "Rewriting" some of the most useful context functions so that
  coding goes faster
   
  Fills the canvas with the provided color, in no color is provided fills it
  with the active color. Fillstyle is reset to its previous value after this function's
  call
  
  @param {Color|string} color either a @creenv/color object or a html compliant string