From 97052f11ef6ea642b0146f7dc7854d0c6356732c Mon Sep 17 00:00:00 2001 From: Owen Date: Sun, 10 Aug 2014 13:33:38 +0300 Subject: Issue #28 --- scripts/rhizicore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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); } } }); -- cgit v1.3.1