Gifu/rensyuu

From 2014.igem.org

(Difference between revisions)
Line 54: Line 54:
var l;
var l;
var m=0;
var m=0;
-
var n=0;
+
var n=2;
function spinright(){
function spinright(){
Line 83: Line 83:
k-=n;
k-=n;
-
if(rad==-360){
+
if(rad==-360){k==180};
-
if(k==180){n=0;}
+
-
else{k-=n}
+
-
};
+
circle.style.transform="rotate("+k+"deg)";
circle.style.transform="rotate("+k+"deg)";
}
}

Revision as of 02:05, 6 September 2015

factory1