function cleanCanvas() {
        // clear the background (with black)
        gl.clearColor(0.0, 0.0, 0.0, 1.0);
        gl.enable(gl.DEPTH_TEST);
        gl.clear(gl.COLOR_BUFFER_BIT  | gl.DEPTH_BUFFER_BIT);
    }
/**
     * Cleans the canvas.
     * @method cleanCanvas
     */
Cleans the canvas.
@method cleanCanvas
Cleans the canvas . @method cleanCanvas
function cleanCanvas() {
        gl.clearColor(0.0, 0.0, 0.0, 1.0);
        gl.enable(gl.DEPTH_TEST);
        gl.clear(gl.COLOR_BUFFER_BIT  | gl.DEPTH_BUFFER_BIT);
    }
function cleanCanvas ( ) { gl . clearColor ( 0.0 , 0.0 , 0.0 , 1.0 ) ; gl . enable ( gl . DEPTH_TEST ) ; gl . clear ( gl . COLOR_BUFFER_BIT | gl . DEPTH_BUFFER_BIT ) ; }
Cleans the canvas.
Cleans the canvas .
// clear the background (with black)