Fixing the resize problem was easy I just added this.
window.addEventListener('resize',
function() {
canvas.width = innerWidth;
canvas.height = innerHeight;
});
https://codepen.io/portree-maths-tutor/pen/bGozywa?editors=0010
Fixing the resize problem was easy I just added this.
window.addEventListener('resize',
function() {
canvas.width = innerWidth;
canvas.height = innerHeight;
});
https://codepen.io/portree-maths-tutor/pen/bGozywa?editors=0010