text: const boardSizes = [800, 500, 100];
  const clearColor = '#000';
  
  export class Board {
  
      constructor(canvas) {
          this.canvas = canvas;
          this.ctx = canvas.getContext('2d', {alpha: false});
          this.sizes = boardSizes;
      }
  
      clear(p) {
          const size = Math.trunc(p[2] / 10);
          this.ctx.fillStyle = clearColor;        
          this.ctx.fillRect(Math.trunc(p[0]), Math.trunc(p[1]), size, size);    
      }
  
      draw(p, c) {
          const size = Math.trunc(p[2] / 10);
          this.ctx.fillStyle = `hsl(${c[0]},${c[1]}%,${c[2]}%)`;
          this.ctx.fillRect(Math.trunc(p[0]), Math.trunc(p[1]), size, size);
      }
      
  }
  