diff --git a/html/force.js b/html/force.js
index c742780..f7e856a 100644
--- a/html/force.js
+++ b/html/force.js
@@ -199,10 +199,6 @@ var force = d3.layout.force()
}
})
-var angle = d3.scale.linear()
- .domain([0, 1, 2, 3])
- .range([0.01, Math.PI/4, 0.01, Math.PI/4])
-
force.on("tick", function() {
var size = force.size()
var nodes = force.nodes()
@@ -229,7 +225,7 @@ force.on("tick", function() {
vis.selectAll(".node").attr("transform", function(d) {
return "translate(" + d.x + "," + d.y + ")";
- })
+ })
})
var data
diff --git a/html/pacman.js b/html/pacman.js
index fec907d..f374ac2 100644
--- a/html/pacman.js
+++ b/html/pacman.js
@@ -1,3 +1,7 @@
+var angle = d3.scale.linear()
+ .domain([0, 1, 2, 3])
+ .range([0.01, Math.PI/4, 0.01, Math.PI/4])
+
d3.timer(pacman)
var a = 0