Gifu/rensyuu
From 2014.igem.org
(Difference between revisions)
Line 59: | Line 59: | ||
AAA=setInterval(function(){ | AAA=setInterval(function(){ | ||
if(m==1){ | if(m==1){ | ||
- | if(rad==360){rad=0 | + | if(rad==360){rad=0;} |
- | + | ||
else{rad+=2}; | else{rad+=2}; | ||
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); | ||
Line 78: | Line 77: | ||
BBB=setInterval(function(){ | BBB=setInterval(function(){ | ||
if(m==0){ | if(m==0){ | ||
- | if(rad==360){rad | + | if(rad==360){rad=0;} |
else{rad-=2}; | else{rad-=2}; | ||
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); |
Revision as of 02:37, 6 September 2015