Edit in JSFiddle

var d = document,
    canvas = d.body.appendChild( d.createElement( 'canvas' ) ),
    context = canvas.getContext( '2d' ),
    time = 0,
    w = canvas.width = innerWidth,
    h = canvas.height = innerHeight,
    m = Math,
    cos = m.cos,
    sin = m.sin,
    PI = m.PI

// The main animation loop
setInterval( function() {
    // Clear
    canvas.width = canvas.width;

    time += .1;


}, 16 )