Gifu/rensyuu2
From 2014.igem.org
(Difference between revisions)
Line 55: | Line 55: | ||
var y; | var y; | ||
var circle =document.getElementById("point") ; | var circle =document.getElementById("point") ; | ||
- | |||
var k=90; | var k=90; | ||
var m=1; | var m=1; | ||
Line 62: | Line 61: | ||
function spinright(){ | function spinright(){ | ||
AAA=setInterval(function(){ | AAA=setInterval(function(){ | ||
- | if(rad==540){rad=0;} | + | if(rad==540){rad=0; m=0;} |
else{rad+=2}; | else{rad+=2}; | ||
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); | ||
Line 79: | Line 78: | ||
function spinleft(){ | function spinleft(){ | ||
BBB=setInterval(function(){ | BBB=setInterval(function(){ | ||
- | if(rad==-360){rad=180;} | + | if(rad==-360){rad=180; m=1;} |
else{rad-=2}; | else{rad-=2}; | ||
x=l*Math.cos(Math.PI/180*rad); | x=l*Math.cos(Math.PI/180*rad); |
Revision as of 10:58, 9 September 2015