function canvasResize() {
        canvas.width = canvasDiv.clientWidth * 200 / 390;
        canvas.height = canvasDiv.clientHeight * 400 / 480;
        redraw();
    }
//handle resizing canvas when window is resized
handle resizing canvas when window is resized
handle resizing canvas when window is resized
function canvasResize() {
        canvas.width = canvasDiv.clientWidth * 200 / 390;
        canvas.height = canvasDiv.clientHeight * 400 / 480;
        redraw();
    }
function canvasResize ( ) { canvas . width = canvasDiv . clientWidth * 200 / 390 ; canvas . height = canvasDiv . clientHeight * 400 / 480 ; redraw ( ) ; }
handle resizing canvas when window is resized
handle resizing canvas when window is resized