Team:Gifu
From 2014.igem.org
(Difference between revisions)
Line 64: | Line 64: | ||
function stopmove(){ | function stopmove(){ | ||
clearInterval(AAA); | clearInterval(AAA); | ||
- | function(){ | + | BBB=setInterval(function(){ |
- | if(rad>=270){rad | + | rad+=1; |
- | + | if(rad>=270){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 75: | Line 75: | ||
if(k>=360){k=0}; | if(k>=360){k=0}; | ||
circle.style.transform="rotate("+k+"deg)"; | circle.style.transform="rotate("+k+"deg)"; | ||
- | + | ),10}; | |
Revision as of 10:02, 1 September 2014