var scene, camera, renderer, controls;

init();
animate();

function init() {
	// STATS
	stats = new Stats();
	stats.setMode( 0 ); // 0: fps, 1: ms, 2: mb
	stats.domElement.style.position = 'absolute';
	stats.domElement.style.left = '0px';
	stats.domElement.style.top = '0px';
	document.body.appendChild( stats.domElement );

	controller = new Leap.Controller();
	scene = new THREE.Scene();

	// CAMERA
	width = window.innerWidth;
	height = window.innerHeight;
	var center = new THREE.Vector3(60, -50, -10);
	//camera = new THREE.OrthographicCamera( width / - 2, width / 2, height / 2, height / - 2, -1000, 2000 );
	camera = new THREE.PerspectiveCamera(75, width / height, 1, 1000 );
	camera.position.z = 150;
	camera.updateProjectionMatrix();
	
	mat1 = new THREE.LineBasicMaterial( { color: 0x0000ff, linewidth: 4, } );
	trace = new GoThree.Trace();
	trace.init(scene, data, {
		allCaps: false,
		zoom: 0.6,
		speed: 1.5,
		angle: 0,
		angle2: 360/24,
		autoAngle: false,
		totalTime: 50,
		distance: 100,
		autoGrow: false,
		distance2: 20
	});

	// RENDERER
	renderer = new THREE.WebGLRenderer({ alpha: true });
	renderer.setSize( width, height );

	// leap camera controls
	controls = new THREE.LeapMyControls( camera , controller, renderer.domElement );
	//controls = new THREE.LeapPointerControls( camera , controller, renderer.domElement );

	// CONTROLS
	var orbit = new THREE.OrbitControls( camera, renderer.domElement );
	orbit.addEventListener( 'change', function() {
		trace.onControlsChanged(orbit.object);
	});

	// ADD CUSTOM KEY HANDLERS
	document.addEventListener("keydown", function(event) {trace.Keydown(event)}, false);

	document.body.appendChild( renderer.domElement );

	controller.connect();
}

function animate() {

	controls.update();
	trace.animate();

	requestAnimationFrame(animate);
	stats.begin();
	renderer.render(scene, camera);
    stats.end();
}

@@ -925,17 +925,18 @@
 %09angle: 
-0
+45
 ,%0A%09%09angl
@@ -943,14 +943,10 @@
 e2: 
-360/24
+90
 ,%0A%09%09
@@ -976,17 +976,18 @@
 alTime: 
-5
+10
 0,%0A%09%09dis
@@ -1731,17 +1731,16 @@
 ate() %7B%0A
-%0A
 %09control

Change default angles