Team:Gifu

From 2014.igem.org

(Difference between revisions)
Line 66: Line 66:
BBB=setInterval(function(){
BBB=setInterval(function(){
rad+=2;
rad+=2;
-
if(rad==270){rad-=2};
+
if(rad==270){rad-=2,k-=2};
if(rad>=360){rad=0};
if(rad>=360){rad=0};
x=r*Math.cos(Math.PI/180*rad);
x=r*Math.cos(Math.PI/180*rad);
Line 74: Line 74:
k+=2;
k+=2;
-
if(k==270){k+=0};
+
if(k>=360){k=0};
circle.style.transform="rotate("+k+"deg)";
circle.style.transform="rotate("+k+"deg)";

Revision as of 10:22, 1 September 2014

factory1