Gifu/rensyuu
From 2014.igem.org
(Difference between revisions)
Line 86: | Line 86: | ||
AAA=setInterval(function(){ | AAA=setInterval(function(){ | ||
- | if(rad==360){ | + | if(rad==360){ |
+ | clearInterval(BBB) | ||
+ | ;} | ||
else{rad+=2}; | else{rad+=2}; | ||
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); | ||
Line 119: | Line 121: | ||
if(rad==360){rad=0;} | if(rad==360){rad=0;} | ||
- | else{rad-= | + | else{rad-=2}; |
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); | ||
y=r*Math.sin(Math.PI/180*rad); | y=r*Math.sin(Math.PI/180*rad); |
Revision as of 01:37, 6 September 2015