1const canvas = document.querySelector('.main-canvas');
2const ctx = canvas.getContext('2d');
3
4let lineWidth = 33;
5let totalWidth = canvas.width;
6let middle = canvas.width / 2;
7
8ctx.beginPath();
9ctx.moveTo(0, middle);
10ctx.lineTo(totalWidth, middle);
11ctx.stroke();