Gifu/rensyuu

From 2014.igem.org

(Difference between revisions)
Line 94: Line 94:
};
};
-
function spinleftc(){
 
-
BBB=setInterval(function(){
 
-
 
-
if(rad==360){rad=0;}
 
-
else{rad-=2};
 
-
x=r*Math.cos(Math.PI/180*rad);
 
-
y=r*Math.sin(Math.PI/180*rad);
 
-
circle.style.top=y+180+"px";
 
-
circle.style.left=x+390+"px";
 
-
 
-
k-=2;
 
-
if(rad==360){k=90};
 
-
circle.style.transform="rotate("+k+"deg)";
 
-
},7);
 
-
};
 

Revision as of 02:42, 6 September 2015

factory1