fillCanvas = (ctx) => {
let k = parseInt(boxWidth * 360),
{ width, height } = ctx.canvas;
ctx.fillStyle = "hsl(216deg 20% 90%)";
ctx.fillRect(0, 0, width, height);
ctx.fillStyle = "hsl(216deg 100% 13%)";
ctx.fillStyle = `hsl(${k}deg 100% 13%)`;
ctx.fillRect(0, 0, boxWidth * width, height);
ctx.fillStyle = "#00ff00";
ctx.fillRect(0, height / 2 - 1, width, 2);
return ctx;
}