summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOwen <despito@MacBook-Pro-de-Despito.local>2014-08-10 13:33:38 +0300
committerOwen <despito@MacBook-Pro-de-Despito.local>2014-08-10 13:33:38 +0300
commit97052f11ef6ea642b0146f7dc7854d0c6356732c (patch)
tree9ac144731971fc50704e2011f780bc127dd70abd /scripts
parentb5256213bd657f56fc3cfdb77414ff827c3f4cf1 (diff)
Issue #28
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rhizicore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 5a671c11..d85e9bf3 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -680,8 +680,8 @@ function tick(e) {
d.x = window.innerWidth / 2;
d.y = window.innerHeight / 2;
}else{
- d.x = window.innerWidth / 2 + (60+newnodes*20) * Math.cos(-Math.PI/2+Math.PI * 2 * (tempcounter-1) / newnodes-0.3);
- d.y = window.innerHeight / 2 + (60+newnodes*20) * Math.sin(-Math.PI/2+Math.PI * 2 * (tempcounter-1) / newnodes-0.3);
+ d.x = window.innerWidth / 2 + (60+newnodes*20) * Math.cos(-Math.PI+Math.PI * 2 * (tempcounter-1) / newnodes+0.3);
+ d.y = window.innerHeight / 2 + (60+newnodes*20) * Math.sin(-Math.PI+Math.PI * 2 * (tempcounter-1) / newnodes+0.3);
}
}
});