text: var canvas, scene, renderer, cam, objects = [], rotation = 0;
  var stats;
  
  function initStats() {
  	// Init stats
  	stats = new Stats();
  	stats.setMode(0);
  	stats.domElement.style.position = 'absolute';
  	stats.domElement.style.right = '0px';
  	stats.domElement.style.bottom = '0px';
  	document.body.appendChild( stats.domElement );
  }
  
  function init() {
  	initStats();
  
      canvas = document.getElementById("canvas");
      scene = new LE.Scene();
      var cs = new LE.ColourSpectrum();
      // Create Lights
      for(var y = 1; y <= 3; y++) {
  	    for(var x = 1; x < 5; x++) {
  			var light = new LE.PointLight({x: 190 * x, y: (y >= 2) ? (140 * y) : (120 * y), colour: cs.random(), intensity: 0.05});
  			scene.addLight(light);
  	    }
      }
  	// Create Polygons
  	var counter = 0;
  	for(var y = 0; y <= 3; y++) {
  		for(var x = 0; x < 9; x++) {
  			objects.push(new LE.Polygon( { x: 107 * x, y: 150 * y, vertices: LE.Vertices.regularPolygon(100, counter + 3), colour: new LE.Colour(0, 0, 0, 125) } ));
  			scene.addShadowObject(objects[objects.length - 1]);
  			counter++;
  		}
  	}
  
      cam = new LE.OrthographicCamera(0, 0);
  
      // Initialise and prepare renderer
      renderer = new LE.WebGLRenderer({canvas: canvas});
      renderer.scene = scene
      renderer.camera = cam;
  
      // Make sure renderer is correct size
  	resizeAndCenter();
  
      // Begin loop
      update();
  }
  
  function update() {
  	stats.begin();
  
  	rotation = rotation >= 360 ? 0 : ++rotation;
  	for(var i = 0; i < objects.length; i++) {
  		objects[i].rotation = rotation;
  	}
  	render();
  
  	stats.end();
      requestAnimationFrame(update);
  }
  
  function render() {
      renderer.clear();
      renderer.render();
  }
  
  // Keeps the content in the center of the window
  function resizeAndCenter() {
  	renderer.resize(window.innerWidth, window.innerHeight);
     	cam.x = -(window.innerWidth - 960) / 2;
     	cam.y = -(window.innerHeight - 560) / 2;
  }
  
  window.onresize = function(event) {
  	resizeAndCenter();
  };