Team:Gifu
From 2014.igem.org
(Difference between revisions)
Line 50: | Line 50: | ||
rad+=1; | rad+=1; | ||
if(rad>=360){rad=0;} | if(rad>=360){rad=0;} | ||
- | else{rad+=1} | + | else{rad+=1;} |
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); | ||
Line 66: | Line 66: | ||
clearInterval(AAA); | clearInterval(AAA); | ||
BBB=setInterval(function(){ | BBB=setInterval(function(){ | ||
- | + | if(rad=270){rad+=0;} | |
- | if(rad=270){rad | + | else{rad+=1;} |
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 09:41, 1 September 2014