summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
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);
}
}
});