function clearCanvas(canvas) {
        canvas.getContext("2d").clearRect(0, 0, canvas.width, canvas.height);
        return canvas;
    }
@returns {Object} clears and returns the specified Canvas element's 2d context.