responsive-sketchpad.js
function clearCanvas () {
            context.clearRect(0, 0, canvas.width, canvas.height);

            if (opts.backgroundColor) {
                context.fillStyle = opts.backgroundColor;
                context.fillRect(0, 0, canvas.width, canvas.height);
            }
        }
function clearCanvas () {
            context.clearRect(0, 0, canvas.width, canvas.height);

            if (opts.backgroundColor) {
                context.fillStyle = opts.backgroundColor;
                context.fillRect(0, 0, canvas.width, canvas.height);
            }
        }
function clearCanvas ( ) { context . clearRect ( 0 , 0 , canvas . width , canvas . height ) ; if ( opts . backgroundColor ) { context . fillStyle = opts . backgroundColor ; context . fillRect ( 0 , 0 , canvas . width , canvas . height ) ; } }
Erase everything in the canvase
Erase everything in the canvase