forked from Chaospott/site
		
	This reverts commit d40664595e.
				
					
				
			This commit is contained in:
		@@ -114,35 +114,19 @@
 | 
				
			|||||||
    // animation
 | 
					    // animation
 | 
				
			||||||
    function initAnimation() {
 | 
					    function initAnimation() {
 | 
				
			||||||
        animate();
 | 
					        animate();
 | 
				
			||||||
        for(var i in points) {
 | 
					 | 
				
			||||||
            shiftPoint(points[i]);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function animate() {
 | 
					    function animate() {
 | 
				
			||||||
        if(animateHeader) {
 | 
					        if(animateHeader) {
 | 
				
			||||||
            ctx.clearRect(0,0,width,height);
 | 
					            ctx.clearRect(0,0,width,height);
 | 
				
			||||||
            for(var i in points) {
 | 
					            for(var i in points) {
 | 
				
			||||||
                // detect points in range
 | 
					 | 
				
			||||||
                if(Math.abs(getDistance(target, points[i])) < 4000) {
 | 
					 | 
				
			||||||
                points[i].active = 0.3;
 | 
					                points[i].active = 0.3;
 | 
				
			||||||
                points[i].circle.active = 0.6;
 | 
					                points[i].circle.active = 0.6;
 | 
				
			||||||
                } else if(Math.abs(getDistance(target, points[i])) < 20000) {
 | 
					 | 
				
			||||||
                    points[i].active = 0.1;
 | 
					 | 
				
			||||||
                    points[i].circle.active = 0.3;
 | 
					 | 
				
			||||||
                } else if(Math.abs(getDistance(target, points[i])) < 40000) {
 | 
					 | 
				
			||||||
                    points[i].active = 0.02;
 | 
					 | 
				
			||||||
                    points[i].circle.active = 0.1;
 | 
					 | 
				
			||||||
                } else {
 | 
					 | 
				
			||||||
                    points[i].active = 0;
 | 
					 | 
				
			||||||
                    points[i].circle.active = 0;
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                drawLines(points[i]);
 | 
					                drawLines(points[i]);
 | 
				
			||||||
                points[i].circle.draw();
 | 
					                points[i].circle.draw();
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        requestAnimationFrame(animate);
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function shiftPoint(p) {
 | 
					    function shiftPoint(p) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user