            helloy = y;
        }

        function changePixelColor(canvas, event) {
            let bbox = canvas.getBoundingClientRect();
            let x = event.clientX - bbox.left;
            let y = event.clientY - bbox.top;
            let i = Math.trunc( (x-6) / 12);
            let j = Math.trunc( (y-6) / 12);
            console.log("i: " + i, "j: " + j);
            pix[i][j] = favColor;
            if (event.shiftKey) pix[i][j]= 3 - favColor;
            clickX = i
            clickY = j
    