Team:Gifu
From 2014.igem.org
(Difference between revisions)
Line 48: | Line 48: | ||
AAA=setInterval(function(){ | AAA=setInterval(function(){ | ||
- | if(rad>=360){rad=0;} | + | if(rad>=360){rad=0,k=0;} |
- | else{rad+=2 | + | else{rad+=2,k+=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); | ||
Line 55: | Line 55: | ||
circle.style.left=x+200+"px"; | circle.style.left=x+200+"px"; | ||
- | + | ||
- | + | ||
circle.style.transform="rotate("+k+"deg)"; | circle.style.transform="rotate("+k+"deg)"; | ||
Revision as of 10:33, 1 September 2014